title: How to handle double quotes inside field values with csv module?
body: <p>I'm trying to parse CSV files from an external system which I have no control of.</p>
  
  <ul>
  <li>comma is used as a separator</li>
  <li>when cell contains comma then it's wrapped in quotes and all other quotes are escaped with another quote character.</li>
  <li>(my problem) when cell was not wrapped in quotes then all quote characters are escaped with another quote nonetheless.</li>
  </ul>
  
  <p>Example CSV:</p>
  
  <blockquote>
    <p>qw""erty,"a""b""c""d,ef""""g"</p>
  </blockquote>
  
  <p>Should be parsed as:</p>
  
  <pre><code>[['qw"erty', 'a"b"c"d,ef""g']]
  </code></pre>
  
  <p>However, I think that Python's csv module does not expect quote characters to be escaped when cell was not wrapped in quote chars in the first place.
  <code>csv.reader(my_file)</code> (with default <code>doublequote=True</code>) returns:</p>
  
  <pre><code>['qw""erty', 'a"b"c"d,ef""g']
  </code></pre>
  
  <p>Is there any way to parse this with python csv module ?</p>