We know its easier to evaluate or simulate in the environment of Python, but I feel it can be also rewritten and implemented by C++.