Iterating Faster with PDB and Flask
blog.kyri.com
blog.kyri.com
http://pypi.python.org/pypi/pudb
Also, agreed with tomlu -- this will work for any python app (as long as it doesn't do strange things to stdout -- nose and daemons are probably the most common examples of things that do change stdout).