python get function name as string in function code example
Example: python get function from string name
module = __import__('foo')
func = getattr(module, 'bar')
func()
module = __import__('foo')
func = getattr(module, 'bar')
func()