Simplify csv export tests to work across python versions.