title: python write list to csv
body: <p>I have this code for trying to write list (of lists) to a csv, where each item (which is a list) should be written as a new csv row:</p>
  
  <pre><code>    resultFile = open("E:/tmobile/CR_Accuracy/cycle7/pp/output.csv",'wb')
      wr = csv.writer(resultFile, dialect='excel')
      for item in result:
        wr.writerow([item,])
  </code></pre>
  
  <p>For some weird reason the csv file is empty after code executes and finishes.
  An example to few of the list item copies from a 'Watch' with PyCharm:</p>
  
  <pre><code>    (7031482579417L, 'Payment', 'Yes', 'Yes - Both')
      (7031482579417L, 'Rate Plan OR Plan Fit Analysis', 'Yes', 'Yes - System')
      (7031482579417L, 'Credits and Adjustments', 'Yes', 'Yes - Both')
  </code></pre>