c++ srouce and python code