Bugfix in format.py

Fixed a bug where the last turn in any corpus would not be save.