Update text_viewer.py