work on python code and c++