from inspect import getmembers, isfunction from somemodule import foo print(getmembers(foo, isfunction))