title: Write python dictionary to CSV columns: keys to first column, values to second
body: <p>I'm looking for a way to write a python dictionary to columns (keys in first column and values in second). This <a href="https://stackoverflow.com/questions/17704244/writing-python-lists-to-columns-in-csv">link</a> shows how to write a list to a column, but am wondering if there is a way to do this without converting my dictionary to two zipped lists.</p>
  
  <pre><code>myDict = {1:'a', 2:'b', 3:'c'}
  
  keyList = myDict.keys()
  valueList = myDict.values()
  
  rows = zip(keyList, valueList)
  
  with open('test.csv', 'wb') as f:
      writer = csv.writer(f)
      for row in rows:
          writer.writerow(row)
  </code></pre>
  
  <p>desired result:</p>
  
  <pre><code>1;a
  2;b
  3;c
  </code></pre>