pystuck.py is a utility for analyzing stuck python programs (or just hardcore debugging).
pystuck currently has two major features: 1. print all running threads' stack traces. (good for finding a long- lasting/blocking function) 2. remote inspection of modules and variables without interrupting the program. (finding deadlocks and such)
more examples, usage and installation notes can be found here: https://github.com/alonho/pystuck