Python Splitlines Method