Essentially, we should check the thread ID rather than the thread state pointer.
_PyEval_EvalFrameDefault()
PyList_Append
_PyEval_MatchClass
sys.setprofile
imp
Miscellaneous source files for the main Python shared library