If `inf` has a header row, which it looks like it does based on what happens below, why not use `DictReader`? Then you don't need to worry about creating `inln` and can just pass the dictionary directly to `process_row`.