code: def to_ansi_24bit(self):
          
          res = []
          for i in self.parts:
              res.append(i.to_ansi_24bit())
          return ''.join(res).encode('utf8')
docs: Convert to ANSI 24-bit
          :return: