Generates an RSA key pair. Relies on PyCrypto.