 with open('master_private.pem', 'w+') as keyfile:     keyfile.write(private_key)     keyfile.close() print ("[*] Successfully created your MASTER RSA private key") except: print ("[*] Error creating your key")  