https://weshallneversurrender.com/PyEval-SetTraceAllThreads/
Unlocking the Mysteries of PyEval_SetTraceAllThreads in Python