Create dtree.py