updating TorsionTree3.py to align with previous commit