input: from Crypto.PublicKey import RSA
  
  def generate_key_pair():
      """Generate an RSA public/private key pair and save them to files 'public.pem' and 'private.pem'.
      Example:
      generate_key_pair()
      # Files 'public.pem' and 'private.pem' should be created with the RSA keys.
      """
output:     key = RSA.generate(2048)
      with open('private.pem', 'wb') as private_key_file:
          private_key_file.write(key.export_key('PEM'))
      with open('public.pem', 'wb') as public_key_file:
          public_key_file.write(key.publickey().export_key('PEM'))