Resolving issues related to PyMongo memory leaks (when encountering large Documents containing mapped Text entities)