title: How do I parse a default dict with values that are lists into independent dicts
body: <p><strong>Trying to parse a defaultdict(list)</strong> </p>
  
  <p><strong>Input:</strong> </p>
  
  <pre><code>defaultdict(class &lt;'list'&gt;,{'key1': ['v1', 'v2'], 'key2': [v3, v4], 'key3': ['v5', 'v6']})
  </code></pre>
  
  <p><strong>desired output:</strong> </p>
  
  <pre><code>list_dic = [{key1: v1, key2: v3, key3: v5}, {key1: v2, key2: v4, key3: v6}] 
  </code></pre>
  
  <p><strong>Has to work for n values in the lists.</strong></p>
  
  <p>Following from the desired output, I intend to use mysql executemany to insert these values into a db. If anyone has any better suggestions of how I could insert a deafaultdict(list) into a table in mysql - I'd appreciate it. </p>