Pyekaboo is a proof-of-concept program that is able to to hijack/hook/proxy Python module(s) thanks to $PYTHONPATH variable. It's like "DLL Search Order Hijacking" for Python.
Slides are availble here
Pyekaboo requires Python and was tested with Python 2.7.10.
$ git clone https://github.com/SafeBreach-Labs/pyekaboo.git $ cd pyekaboo $ cd pyekaboo $ python mkpyekaboo.py -h
Example: Debugging Python's sockets Module
# assume pyekaboo root directory $ cd scripts $ python ../pyekaboo/mkpyekaboo.py -l 6 socket $ ./enable_pyekaboo.sh -i $ python ../test_apps/django_test/blog/manage.py runserver