Solved by Neofytos in post #6 
              
              
                I believe I’ve just solved this. 
It turns out that a specific function was allocating memory that Python wasn’t able to retrieve back and so the accumulation was the cause of this increase. So to solve this I spawn a new process to run the function and terminate it once I get what I want from it. 
F…