Update long_text.py

Fixing a few bugs.