Update PalindromeChecker.py

Edited to match the "Pythonic" way.