Converting a string into a list in Python,[x for x in myfile.splitlines() if x != '']