Python + C++ version of icme v.1 program.