C++ and Python programs