replace pymongo.Connection with MongoClient

pymongo.connection.Connection is deprecated (https://github.com/mongodb/mongo-python-driver/blob/master/pymongo/connection.py#L18)