Create tri.py