This is a rewrite of the Python debugger, pydb, itself a derivative of the stock Python debugger pdb.
See this wiki for more information.
This code makes assumes Python in the version range of 2.5 up to and not including 3K. Use pydb for Python 2.5 and earlier.