python string to list split by newline