My tlg.py code now works for what codechef was actually asking for. I was solving for the highest lead for any given round. They wanted the highest cumulative lead at the end of any given round. Very strange way to keep score.