[python] how to read a long multiline string line by line in python