title: pymongo and output of aggregate
body: <p>Here is my pymongo call</p>
  
  <pre><code>from pymongo import MongoClient
  client = MongoClient('localhost', 27017)
  db = client['somedb']
  collection = db.some_details
  pipe = [{'$group': {'_id': '$mvid', 'count': {'$sum': 1}}}]
  TestOutput = db.collection.aggregate(pipeline=pipe)
  print(list(TestOutput))
  client.close()
  </code></pre>
  
  <p>For some reason resulting list is empty, while in Robomongo I get nonempty output.</p>
  
  <p>Is formatting incorrect?</p>
  
  <p>The exact Robomongo query is </p>
  
  <pre><code>db.some_details.aggregate([{$group: {_id: '$mvid', count: {$sum: 1}}}])
  </code></pre>
  
  <p><strong>UPDATE</strong>
  The output looks like </p>
  
  <pre><code>{
      "result" : [ 
          {
              "_id" : "4f973d56a64facfaa7c3r4rf262ad5be695eef329aff7ab4610ddedfb8137427",
              "count" : 84.0000000000000000
          }, 
          {
              "_id" : "a134106e1a1551d296fu777cedc933e7df2d0a9bc5f41de047aba3ee29bace78",
              "count" : 106.0000000000000000
          }, 
  
      ],
      "ok" : 1.0000000000000000
  }
  </code></pre>