def put(self, payload, box=1):
        '''
        Send a raw message to NXT
        payload -- bytes to send
        box -- 1 to 10, which mail box on NXT to place message in
        '''
        # sz    msg----> 0
        # 0123456789 ... n
        payload += chr(0)
        pl_sz = len(payload)
        sz = pl_sz + 4
        header = struct.pack('h2sbb', sz, self.huh, box - 1, pl_sz)
        out = struct.pack('6s%ds' % pl_sz, header, payload)
        # print 'out', out
        dat = out[2:6]
        # for c in dat:
        #     print ord(c)
        # print
        # self.s.write('\x11\x00\x80\t\x00\r<0123456789>\x00')
        self.s.write(out)

        Send a raw message to NXT
        payload -- bytes to send
        box -- 1 to 10, which mail box on NXT to place message in
        
recipes/Python/498085_Lego_Mindstorms_Bluetooth/recipe-498085.py