title: How to pretty print nested dictionaries?
body: <p>How can I pretty print a dictionary with depth of ~4 in Python? I tried pretty printing with <code>pprint()</code>, but it did not work:</p>
  
  <pre><code>import pprint 
  pp = pprint.PrettyPrinter(indent=4)
  pp.pprint(mydict)
  </code></pre>
  
  <p>I simply want an indentation (<code>"\t"</code>) for each nesting, so that I get something like this:</p>
  
  <pre><code>key1
      value1
      value2
      key2
         value1
         value2
  </code></pre>
  
  <p>etc. </p>
  
  <p>How can I do this?</p>