Update triangle2.py