py pgm to connect to mongo db running locally