Save TD from python

Hello! How can I force a save on the touch designer file from a python script? Also, how can I force a save after the user has used the GUI within performance mode.

Thanks!
Tegan

Got the answer! For anyone else who may find themselves here:
project.save()