Python Executing -Funktion aus der String ausführen
import foo
method_to_call = getattr(foo, 'bar')
result = method_to_call()
Stupid Squirrel
import foo
method_to_call = getattr(foo, 'bar')
result = method_to_call()
module = __import__('foo')
func = getattr(module, 'bar')
func()