docs: def from_keybase(username):
      """Will attempt to retrieve a GPG public key from
      Keybase, importing if neccesary"""
      public_key = key_from_keybase(username)
      fingerprint = public_key['fingerprint'][-8:].upper().encode('ascii')
      key = public_key['bundle'].encode('ascii')
      if not has_gpg_key(fingerprint):
          LOG.debug("Importing gpg key for %s", username)
          if not import_gpg_key(key):
              raise aomi.exceptions.KeybaseAPI("import key for %s" % username)
  
      return fingerprint