def get_leaves(all_tasks):
    """
    Return a list of the leaf tasks (those that no other tasks are dependent on).
    """
    # find the leaves
    all_deps = set()
    for t in all_tasks:
        all_deps.update(t.get_deps())

    leaves = set(all_tasks).difference(all_deps)

    return leaves