changes to t.py