This line might also work
workflows = [wf.strip() for wf in open(input_file).readlines() if wf.strip()]