Update tris.py

Created body of function __save_history