from c++ to python