def extract_submittable_jobs( waiting ):
    submittable = []

    for job in waiting:
        unsatisfied = sum([(subjob.submitted==0) for subjob in job.dependencies])
        if unsatisfied == 0:
            submittable.append( job )

    return submittable
Return all jobs that aren't yet submitted, but have no dependencies that have
dataset/ETHPy150Open uci-cbcl/tree-hmm/treehmm/sge.py/extract_submittable_jobs