http://codeasify.com/blog/mongodb-with-pymongo/
Checkout this amazing article