minor changes to tt.py