Python 2, since <a href="https:&#x2F;&#x2F;bitbucket.org&#x2F;yarosla&#x2F;nxweb&#x2F;src&#x2F;tip&#x2F;src&#x2F;lib&#x2F;modules&#x2F;python.c" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;yarosla&#x2F;nxweb&#x2F;src&#x2F;tip&#x2F;src&#x2F;lib&#x2F;modules&#x2F;...</a> uses PyInt_FromLong, which was replaced by PyLong_FromLong in Python 3. On the other hand, it doesn&#x27;t look hard to port.