python call a function using a string code example Example: python call function by string getattr(obj, 'func')('foo', 'bar', 'args')