Refactored out tpp_pepto.py