Made splitlines() return string rather than bytes and updated notebooks in docs