Updated leaves.py to tree_compare.py