import pdb

Debugging programs in Python