splitlines
>>> a = "hello\nhow are you\ni am fine"
>>> print a
hello
how are you
i am fine
>>> b = a.splitlines()
>>> print b
['hello', 'how are you', ' i am fine']
>>> a = "hello\nhow are you\ni am fine"
>>> print a
hello
how are you
i am fine
>>> b = a.splitlines()
>>> print b
['hello', 'how are you', ' i am fine']