NOTE- this comes from Jon Smajda @smajda, who presented at PythonKC
My one cool Python trick from today:
When you're debugging some code, if you put this at the line you want to look at:
import pdb; pdb.set_trace()
You will be dropped into an interactive shell at that point in your code. For example: