import struct import sys def parse_flat_table(buffer): for params in struct.iter_unpack('