Python POC: Found memory leak and slowed it down. Remains unfixed