Trace for Python