process_csv - iterate over generator rather than exhaust it

This saves memory; there's no benefit to exhausting it at the
start.