Multiple Inheritance Program In Python For Palindrome Words