Code restructuring, switching to c++

Python is too hard;
test2

test
Completed temporary variable, now compiles

test