How can I (pythonically) check if a parameter is a Python module? There\'s no type like module or package.
>>> os
This seems a bit hacky, but:
>>> import sys >>> import os >>> type(os) is type(sys) True