adding python modules and also modifying some code in c++