I decided to strip the newline characters at the end of standard input lines for lines variable. I think this is useful if you concatenate a line with another string or others.
For example,
ls | pythonp -e "l + '.jpg'"
If you think it's a bad idea, please write the reason why you think so.