Update dtree.py