'Get subset of the dependencies with certain types.'

def dependencies_of_type(self, *deptypes):

    return dict(((name, conds) for (name, conds) in self.dependencies.items() if any(((d in self.dependency_types[name]) for d in deptypes))))
