Memory leaks In Python with tracemalloc