Inheritance Program In Python For Palindrome