code: def crc16_kermit(data, crc=0):
      
      tab = CRC16_KERMIT_TAB  # minor optimization (now in locals)
      for byte in six.iterbytes(data):
          tbl_idx = (crc ^ byte) & 0xff
          crc = (tab[tbl_idx] ^ (crc >> 8)) & 0xffff
      return crc & 0xffff
docs: Calculate/Update the Kermit CRC16 checksum for some data