def _list_keys(user=None, gnupghome=None, secret=False):
 gpg = _create_gpg(user, gnupghome)
 _keys = gpg.list_keys(secret)
 return _keys

def _list_keys ( user = None , gnupghome = None , secret = False ) : gpg = _create_gpg ( user , gnupghome ) _keys = gpg . list_keys ( secret ) return _keys
helper function for listing keys .