How can I Implement palindromes in Python?