import shutil


def which_all(path_programs):
    """confirm all programs in iterable path_programs are in the path.
    Returns list of missing program error messages."""
    missing_programs = []
    for program in path_programs:
        if not shutil.which(program):
            missing_programs.append("%s was not found in PATH." % program)
    return missing_programs