I love being able to modify the arguments the get sent to a function, using settrace, like :
settrace
import sys def trace_func(frame,event,arg): va
For example, get the memory consumption of Python code line-by-line: http://pypi.python.org/pypi/memory_profiler