Funkcja wywołania Pythona z ciągu
result = getattr(model_or_object, 'function')('arguments')
Talented Tern
result = getattr(model_or_object, 'function')('arguments')
import foo
method_to_call = getattr(foo, 'bar')
result = method_to_call()
getattr(obj, 'func')('foo', 'bar', 'args')