tree.py