def depends_on_unbuilt(item, deps, built):
    """ See if item depends on any item not built """
    if not item in deps:
        return False
    
    return any(d not in built for d in deps[item])
 See if item depends on any item not built 
recipes/Python/576569_Dependency_resolver/recipe-576569.py