結果 : how to define a tree in python