I have a parsing system for fixed-length text records based on a layout table:
parse_table = [\\ (\'name\', type, length), .... (\'numeric_field\
lenient_int = lambda string: int(string) if string.strip() else None #else 0 #else ???