def update_processes(processes_list):
    """
    Checks to see each process in the list provided is running.
    If a process is not, then it is removed from the new list which is returned.
    """
    updated_list = []

    for process in processes_list:
        process.poll()

        if process.returncode is None:
            updated_list.append(process)

    return updated_list