how to make a string palindrome in python