...
The changes try to store entities as their serialized (tostring) version of the metadata, and re-parse it on demand. The idea being that we don't need to keep track of the whole parsed tree, but just the serialized entities.
Parked
https://tech.buzzfeed.com/finding-and-fixing-memory-leaks-in-python-413ce4266e7d