python sys stdout write newline