title: Pretty print Python dictionary from command line
body: <p>I can pretty print JSON from the command line easily:</p>
  
  <pre><code>$ echo '{"hello": "world"}' |python -mjson.tool
  {
      "hello": "world"
  }
  </code></pre>
  
  <p>However it doesn't work for Python dictionaries (obviously):</p>
  
  <pre><code>$ echo "{'hello': None}" |python -mjson.tool
  Expecting property name: line 1 column 1 (char 1)
  </code></pre>
  
  <p>Is there some built-in class I can use similar to <code>json.tool</code> to pretty print Python data structures?</p>