https://weshallneversurrender.com/PyErr-SetRaisedException/
Python Exception Handling: Demystifying PyErr_SetRaisedException