making a c++ program out of the python script