How can I (pythonically) check if a parameter is a Python module? There\'s no type like module or package.
>>> os
>>> import inspect, os >>> inspect.ismodule(os) True