Python RSA implementation