Implementing the csv output with the builtin csv library
StringIO().seek(0) must be called to get the whole generated csv text.
Moved the csv and StringIO imports to the beginning of the module
Merge pull request #24 from edin1/fix-csv

Fix :  csv bug: delimiter ";" in cell values is not escaped properly