[Python-Dev] Improve CPython tracing performance