xrange(score_length) would be enough, no 0 needed.