ensure csv export works on both PY versions