from inspect import getmodule
print(getmodule(os))
import imp
print("Location of Python os module sources:")
print(imp.find_module('os'))
print("
Location of Python time module sources:")
print(imp.find_module('time'))
import inspect
inspect.getfile(<mdule name>)
result=[]
your_module = ?
for i in dir(your_module):
if type(getattr(your_module, i)).__name__ == "function":
result.append(getattr(your_module, i))
print(result)