Update tree_model.py