Palindrome Number Detection in Python