Use csv.writer to write csv output
Merge pull request #2 from anall/master

Use csv.writer to write csv output