title: Python dictionary to CSV in required format
body: <p>I have a python dictionary that looks like the following:</p>
  
  <pre><code>{
    key1: [value1, value2, value3, n],
    key2: [value1, value2, value3, n],
    key3: [value1, value2, value3, n],
    key4: [value1, value2, value3, n]
  }
  </code></pre>
  
  <p>I would like to write these values to a csv file in the format where each line contains Keys as header and associated values(row by row) under that key.</p>