Update sad-horse.py

- Fixed a bug in the call of text_file's open() method.

- Better formatting when writing to files (see ln32)