palindrome program in python for integer