how to call a fuction with its name as a string python code example
Example: python execute function from string
import foo
method_to_call = getattr(foo, 'bar')
result = method_to_call()
import foo
method_to_call = getattr(foo, 'bar')
result = method_to_call()