call python class method dynamically like a boss

    
    # set class to variable
    m = globals()['class_name']()

    # get class method as a function
    func = getattr(m, 'func_name')

    # than fire it
    func()