I am using pymongo to query for all items in a region (actually it is to query for all venues in a region on a map). I used db.command(SON()) before to search i
db.command(SON())
I suggest create a list and append dictionary into it.
x = [] cur = db.dbname.find() for i in cur: x.append(i) print(x)
Now x is a list of dictionary, you can manipulate the same in usual python way.