add rsa_generate_private_key function to replace RSAPrivateKey.generate

refs #1026. #1101 is dependent on this
Given the module, should this maybe just be `generate_private_key`? I think common pattern will be to import the module and `rsa.generate_private_key()`?