Tracing python code

Tracing python code

Great introduction to sys.settrace()