use the Python `csv` module to handle report and query exports to do proper CSV escaping (fixes #4436)
Authored by: mgood 2007-02-09
Parent: [r4713]
Child: [r4715]