Hashing Program In Python For Palindrome