code: def exportNewKey(fingerprint):
      
      log.info("Exporting key: %s" % fingerprint)
  
      keyfn = os.path.join(gpg.homedir,
                           fingerprint + '-8192-bit-key') + os.path.extsep
  
      pubkey = gpg.export_keys(fingerprint)
      seckey = gpg.export_keys(fingerprint, secret=True)
      subkey = gpg.export_keys(fingerprint, secret=True, subkeys=True)
  
      with open(keyfn + 'pub' + os.path.extsep + 'asc', 'w') as fh:
          fh.write(pubkey)
      with open(keyfn + 'sec' + os.path.extsep + 'asc', 'w') as fh:
          fh.write(seckey)
      with open(keyfn + 'sub' + os.path.extsep + 'asc', 'w') as fh:
          fh.write(subkey)
docs: Export the new keys into .asc files.
  
      :param str fingerprint: A full key fingerprint.