title: PyMongo query not returning results although the same query returns results in mongoDB shell
body: <pre><code>import pymongo
  uri = 'mongodb://127.0.0.1:27017'
  client = pymongo.MongoClient(uri)
  db = client.TeamCity
  students = db.students.find({})
  for student in students:
      print (student)
  </code></pre>
  
  <hr>
  
  <p>Python Result:</p>
  
  <h2>Blank</h2>
  
  <p>MongoDB: Results </p>
  
  <pre><code>db.students.find({})
  
  { "_id" : ObjectId("5788483d0e5b9ea516d4b66c"), "name" : "Jose", "mark" : 99 }
  { "_id" : ObjectId("57884cb3f7edc1fd01c3511e"), "name" : "Jordan", "mark" : 100
  }
  </code></pre>
  
  <hr>
  
  <pre><code>import pymongo
  uri = 'mongodb://127.0.0.1:27017'
  client = pymongo.MongoClient(uri)
  db = client.TeamCity
  students = db.students.find({})
  print (students.count())
  </code></pre>
  
  <hr>
  
  <p>Python Result:</p>
  
  <h2>0</h2>
  
  <p>mongoDB Results</p>
  
  <pre><code>db.students.find({}).count()
  
  2
  </code></pre>
  
  <hr>
  
  <p>What am I missing?</p>
  
  <p>For </p>
  
  <pre><code>import pymongo
  uri = 'mongodb://127.0.0.1:27017'
  client = pymongo.MongoClient(uri)
  db = client.TeamCity
  students = db.students.find({})
  print (students)
  </code></pre>
  
  <p>Python Result :
  </p>
  
  <p>So I think it is able to connect to the db successfully but not returning results</p>