how to iterate and update documents with pymongo?,cursor = collection.find({'$snapshot': True})