return '"{}"'.format(str(col).replace('"', '""'))
writer = csv.writer(fileobj, quoting=csv.QUOTE_NONE, escapechar='',
    quotechar='')
for row in rows:
    pass
csv writer in Python with custom quoting