update tpp.py for gen3