title: How to create a csv file using python's csv module?
body: <p>How can I use python to create a csv file named ted.csv for instance using the csv module:</p>
  
  <pre><code>import csv
  with open('ted.csv', 'wb') as csvfile:
      spamwriter = csv.writer(csvfile, delimiter=',')
  </code></pre>
  
  <p>Gives me an error</p>
  
  <blockquote>
    <p>Module has no attribute reader</p>
  </blockquote>