$ 0 0 locals()["myfunction"]() or globals()["myfunction"]() locals returns a dictionary with a current local symbol table. globals returns a dictionary with global symbol table.