python3 support backport

* using Py.GIL()
* signed assembly