try to port c++ to python, not work yet