Continue porting parts of the python interface system to c++.