fixed palindrome.py