In parser.py BATCH_CONTROL_DEF, there are two fields named orig_dfi_id. This looks like a mistake and the second one should be batch_id. Additionally, in FILE_HEADER_DEF, fields im_dest_name and im_orgn_name both have trailing whitespace.