make struct.unpack(fmt, my_bytearray) work with older python