Corrected check for blank lines in `initialize.py`

Checking for `line=="\n"` fails if the line was either created on
a Windows machine (and thus has a different line ending), or includes
whitespace, or both.