code: def GUIDToStr(g):
      
      try:
          dat = uuid.UUID(bytes_le=bytes(g))
      except:
          dat = uuid.UUID(bytes_le=''.join(map(chr, g)))
      return '{' + str(dat).upper() + '}'
docs: Converts a GUID sequence of bytes into a string.
  
      >>> GUIDToStr([103,22,79,173,  117,234,  36,65,
      ...            132, 212, 100, 27, 59, 25, 124, 101])
      '{AD4F1667-EA75-4124-84D4-641B3B197C65}'