Update tree.py

finished cd