Changed function IsPalindrome to is_palindrome
now complies with PEP8.