convert c/c++ to python automatically