a byte of python - io input sample pgm - palindrome