def _non_empty_lines(output):
    """Helper to turn a string into a list of not
       empty lines and returns it.
    """
    return [line for line in
            output.splitlines() if line.strip()]