def get_all_process_ids(processes):
    """Given an iterable of processes, get pid, ppid, and lwp
    and put them in a set (we don't care about duplicates)

    Arguments:
        processes {some_iter} -- An interable(probably a list) of processes

    Returns:
        set -- all see process IDs
    """
    all_processes = set()
    for process in processes:
        all_processes.add(process.pid)
        all_processes.add(process.ppid)
        all_processes.add(process.lwp)
    return all_processes