Python stores all the local objects in locals(), so you can do something as
def func():
    pass

locals().get('func')() # To run the function by string name

There is also globals(), which you can use instead as
my_globals = globals().copy()
my_globals.update(locals())

# then same as above