Try the builtin function reload. For example: vanl@MOUSE ~/winhome $ python Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32 Type "copyright", "credits" or "license" for more information. >>> import os >>> reload(os) <module 'os' from 'c:\lib\python20\lib\os.pyc'> >>>