this line might also do the same:
workflows = [wf.strip() for wf in open(input_file).readlines() if wf.strip()]