updated simple_tps.py