Tools for injecting code into running Python processes http://pyrasite.com/ (see the video in action) https://github.com/lmacken/pyrasite