Port the updated TPL.py from R!N, and begin saving

This is the beginning of save support. Doesn't work yet, but it will
soon...!
Also ported the new TPL.py from Reggie! Next