import shutil


def find_program(*programs):
    """Returns the path to the first program in PATH with a name in `programs`.
    Returns None on failure."""
    for prog in programs:
        val = shutil.which(prog)
        if val:
            return val
    return None