C++ and python trees are finally indentical