https://weshallneversurrender.com/PyImport-GetMagicTag/
Understanding PyImport_GetMagicTag in Python