def isPalindrom(self):
    stripped_self = (i.lower() for i in self if i not in ' ,.;:?!')
reversed_stripped_self = (j.lower() for j in self[::-1] if j not in ' ,.;:?!')
Fast and pythonic way to find out if a string is a palindrome