Locals of Function

def myFunc():
    print("hello")
fname = "myFunc"
f = locals()[fname]
f()
hello
f = eval(fname)
f()
hello