Update longest_repetition.py