How can I (pythonically) check if a parameter is a Python module? There\'s no type like module or package.
>>> os
Two ways,you could not import any modules:
type(os) is type(__builtins__)
str(type(os)).find('module')>-1