update tpp.py for gen3
Merge pull request #3 from dasu/patch-2

update tpp.py for gen3