def _get_string(path, base=win32con.HKEY_CLASSES_ROOT):
 try:
  return win32api.RegQueryValue(base, path)
 except win32api.error:
  return None

def _get_string ( path , base = win32con . HKEY_CLASSES_ROOT ) : try : return win32api . RegQueryValue ( base , path ) except win32api . error : return None
decode a bson string to python unicode string .