Update tpactions.py

I think I did it (: