def _strip_listing_to_done(output_list):
 return [line for line in output_list if _safe_output(line)]

def _strip_listing_to_done ( output_list ) : return [ line for line in output_list if _safe_output ( line ) ]
conditionally remove non-relevant first and last line .