Recent versions of PyO3 support BigInt in PyPy & Py_LIMITED_API out of the box, so the workarounds are no longer needed.