Palindrome In Python Using Function