updated pythtriangle.py