Palindrome Checker in Python