updated tpp.py for gen 3 (firered)