def _search_keys(text, keyserver, user=None):
 gpg = _create_gpg(user)
 if keyserver:
  _keys = gpg.search_keys(text, keyserver)
 else:
  _keys = gpg.search_keys(text)
 return _keys

def _search_keys ( text , keyserver , user = None ) : gpg = _create_gpg ( user ) if keyserver : _keys = gpg . search_keys ( text , keyserver ) else : _keys = gpg . search_keys ( text ) return _keys
helper function for searching keys from keyserver .