@peterbe ok agreed on cStringIO, but t.generate_rows() is a generator (it's returning one row at a time), what are you suggesting I do here? This is creating one line at a time currently