Isn't this bit only ever gonna run once?...
if progress_lines[index] is None:
Because inside that loop you're setting progress_lines[index]?