check if a sentence is palindrome python