Update srt.py

Fixes index error for files that have less than 2 lines