replacing the python node definitions with c++ ones.