MongoDB Print Pretty with PyMongo : <p>I've looked up print pretty for MongoDB, and i understand how to do it from the shell. What I can't find is how to do it with PyMongo, so that when I run it in eclipse, the output will print pretty instead of all in one line. Here's what I have right now:</p>

<pre><code>  cursor = collection.find({})
  for document in cursor: print(document)
</code></pre>

<p>This prints everything in my collection, but each document in my collection just prints in one line. How can i change this to get it to print pretty?</p>
