Python Palindrome Program Using Functions