def parse_header(recipe, header="<STR_LIT>", remove_header=True):
parsed_header = None<EOL>fromline = [x for x in recipe.split('<STR_LIT:\n>') if "<STR_LIT>" %header in x.lower()]<EOL>if len(fromline) == <NUM_LIT:0>:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>if len(fromline) > <NUM_LIT:0>:<EOL><INDENT>fromline = fromline[<NUM_LIT:0>]<EOL>parsed_header = fromline.strip()<EOL><DEDENT>if remove_header is True:<EOL><INDENT>parsed_header = fromline.split('<STR_LIT::>', <NUM_LIT:1>)[-<NUM_LIT:1>].strip()<EOL><DEDENT>return parsed_header<EOL>
take a recipe, and return the complete header, line. If
       remove_header is True, only return the value.

       Parameters
       ==========
       recipe: the recipe file
       headers: the header key to find and parse
       remove_header: if true, remove the key