Fixed py_trace_event to use traced method