I think so. As far as i remember, I had verified that pymongo collection.find_one() returns a document of type dict or None.