replace CMakeLists python script