more changes to tt.py