Last year I open sourced my enhancement to Python PDB which lets you rewind time. Sadly I announced it on April Fools Day. Oddly enough, even though I open sourced it, people thought the screencast was a hoax. It isn't at all. It really works.
Check out last year's post: