Using the Python debugger to trace method execution