I recently noticed that, in the code in question, the method enclosingContextChain: List[Context] from the Context class was called to create a list of contexts that was immediately deconstructed. It seems that, in many other calls to this method, the list is created and immediately consumed, with the unneeded allocation.
The overall objective of this toolkit is to provide and offer a free collection of data analysis and machine learning that is specifically suited for doing data science. Its purpose is to get you started in a matter of minutes. You can run this collections either in Jupyter notebook or python alone.