I need finer control on how data is output to csv so I cannot use mongoexport. I would like to read in one mongodb document at a time and write to csv formatted line in a file. If anyone can point me in the right direction, it would be helpful. If all I need to consider in writing csv values is escaping double quotes I can probably just write out the line without the need of csv module. Mainly concerned about the csv creation part.I need finer control on how data is output to c