What\'s an easy way of finding all the python modules from a particular package that are being used in an application?
sys.modules is a dictionary mapping module names to modules. You can examine its keys to see imported modules.
sys.modules
See: http://docs.python.org/library/sys.html#sys.modules