https://weshallneversurrender.com/PyLong-AsUnsignedLongMask/
Understanding PyLong_AsUnsignedLongMask in Python