code: def unpack_rows(rows):
      
      for row in rows:
          fmt = '!%dH' % len(row)
          yield bytearray(struct.pack(fmt, *row))
docs: Unpack each row from being 16-bits per value,
      to being a sequence of bytes.