def all_exited(runlist): runs = [u.isAlive() or not u.exited for u in runlist] runs = filter(truth,runs) return len(runs)