def packetToDict(pkt):
d = {<EOL>'<STR_LIT:id>': pkt[<NUM_LIT:4>],<EOL>'<STR_LIT>': xl320.InstrToStr[pkt[<NUM_LIT:7>]],<EOL>'<STR_LIT>': (pkt[<NUM_LIT:6>] << <NUM_LIT:8>) + pkt[<NUM_LIT:5>],<EOL>'<STR_LIT>': pkt[<NUM_LIT:8>:-<NUM_LIT:2>],<EOL>'<STR_LIT>': pkt[-<NUM_LIT:2>:]<EOL>}<EOL>return d<EOL>
Given a packet, this turns it into a dictionary ... is this useful?

in: packet, array of numbers
out: dictionary (key, value)