title: how to convert a nested OrderedDict to dict?
body: <p>I have a nested <code>OrderedDict</code> I would like to convert to a <code>dict</code>. Applying <code>dict()</code> on it apparently only converts the outermost layer of the last entry. </p>
  
  <pre><code>from collections import OrderedDict
  
  od = OrderedDict(
      [
          (u'name', u'Alice'),
          (u'ID', OrderedDict(
              [
                  (u'type', u'card'),
                  (u'nr', u'123')
              ]
          )),
          (u'name', u'Bob'),
          (u'ID', OrderedDict(
              [
                  (u'type', u'passport'),
                  (u'nr', u'567')
              ]
          ))
      ]
  )
  
  print(dict(od))
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>{u'name': u'Bob', u'ID': OrderedDict([(u'type', u'passport'), (u'nr', u'567')])}
  </code></pre>
  
  <p>Is there a direct method to convert all the occurences?</p>