Port the code to use a pure-Python RSA library: http://stuvel.eu/rsa
The rsa package requires public keys to be written in a slightly different format: http://stuvel.eu/files/python-rsa-doc/compatibility.html#interoperability-with-openssl