added MongoDB support with Pymongo