Updated mongo.py