title: Iterate through Nested, mixed dictionary
body: <p>I have been using CrunchBase API, and the output provided is as the following example (actual example <a href="http://ec2-107-21-104-179.compute-1.amazonaws.com/v/1/company/stack-exchange.js" rel="nofollow">here</a>):</p>
  
  <pre><code> output = {'name':'StackOverflow',
         'competitors':[{   'competitor':'bing',
                            'link':'bing.com'},
                        {   'competitor':'google',
                            'link':'google.com'}],
         'acquisition': {'acquired_day': 16,
                         'acquired_month': 12,
                         'acquired_year': 2013,
                         'acquiring_company': {'name': 'Viggle',
                                               'permalink': 'viggle'}}}  
  </code></pre>
  
  <p>(this is just an example). </p>
  
  <p>The point is, in the output dict there are several values that can be unicode/int, lists or dictionaries. There values can hold lists, dict or unicode as well. </p>
  
  <p>How could I iterate through the dict? I tried itertools.product but it only seems to work when the structure of the dict is uniform. My goal is to turn this output JSON file into a csv.</p>