title: CSV from list of dictionaries with differing length and keys
body: <p>I have a list of dictionaries that I want to write to a csv file.
  The first dictionary is of a different length and has different keys than the following dictionaries.</p>
  
  <pre><code>dict_list = [{"A": 1, "B": 2}, {"C": 3, "D": 4, "E": 5}, {"C": 6, "D": 7, "E": 8}, ...]
  </code></pre>
  
  <p>How do I write this to a csv-file so that the file looks like this:</p>
  
  <pre><code>A B C D E
  1 2 3 4 5
      6 7 8
      . . .
  </code></pre>