code: def get_key_files(kfiles, dirname, names):
      
      for name in names:
          fullname = os.path.join(dirname, name)
          if os.path.isfile(fullname) and \
              fullname.endswith('_rsa') or \
                  fullname.endswith('_dsa'):
              kfiles.put(fullname)
docs: Return key files