title: How to add a text delimiter correctly in Python
body: <p>I want to export some data from DB to CSV file. I need to add a '|' delimiter to specific fields. At the moment when I export file, I use something like that:
  - To specific fields (at the end and beginning) I add '|':</p>
  
  <pre><code>....
  if response.value_display.startswith('|'):
                          sheets[response.sheet.session][response.input.id] = response.value_display
                      else:
                          sheets[response.sheet.session][response.input.id] = '|'+response.value_display+'|'
  ....
  </code></pre>
  
  <ul>
  <li>And I have CSV writer function settings like that:</li>
  </ul>
  
  <pre><code>self.writer = csv.writer(self.queue, dialect=dialect,
                                   lineterminator='\n',
                                   quotechar='',
                                   quoting=csv.QUOTE_NONE,
                                   escapechar=' ',
                                   ** kwargs)
  </code></pre>
  
  <p>Now It works, but when I have DateTime fields(where is space) writer adds some extra space. </p>
  
  <p>When I have default settings (sometimes) at the end and beginning CSV writer add double-quotes but I don't know why and what it depends on.</p>