Python extension module working with mongoDB C driver