add python scripts.
update c++ code.