added prunetree.py