1import imp
2print("Location of Python os module sources:")
3print(imp.find_module('os'))
4print("\nLocation of Python time module sources:")
5print(imp.find_module('time'))
1result=[]
2your_module = ?
3for i in dir(your_module):
4 if type(getattr(your_module, i)).__name__ == "function":
5 result.append(getattr(your_module, i))
6print(result)