old C++/Python of marketsimulator