title: Serializing python object to python source code
body: <p>I have a python dictionary that I'd like to serialize into python source code required to initialize that dictionary's keys and values. </p>
  
  <p>I'm looking for something like <a href="http://docs.python.org/library/json.html" rel="noreferrer"><code>json.dumps()</code></a>, but the output format should be Python not JSON. </p>
  
  <p>My object is very simple: it's a dictionary whose values are one of the following:  </p>
  
  <ol>
  <li>built-in type literals (strings, ints, etc.)</li>
  <li>lists of literals</li>
  </ol>
  
  <p>I know I can build one myself, but I suspect there are corner cases involving nested objects, keyword escaping, etc. so I'd prefer to use an existing library with those kinks already worked out. </p>