cleaned up prunetree.py and rfdist.py