Add line streaming to Python client