replace pymongo.Connection with MongoClient

pymongo.connection.Connection is deprecated and
replaced with pymongo.mongo_client.MongoClient