Since python can now come without GIL, interacting with the CPython API is slightly different. The changes needed are described here - seems reasonably straightforward. Probably should be done alongside dropping python2 support from the CPython extensions.