Updated palindrome.py

edited palindrome to be able to run well with cmd and github