Palindrome Program Using Python Dictionaries