Use struct.unpack() to get a list of int and then generate a list of hexstr octets from it for ':'.join() to get consistent behavior for both python2 and python3. Signed-off-by: Jouni Malinen <j@w1.fi>