Update palindrome.py