data.read().split("\n\n") in python code example Example: split string on '\n' python var = myString.splitlines()