def temp_input(self, job):
    for (job_, files) in self.dependencies[job].items():
        for f in filter(job_.temp_output.__contains__, files):
            (yield f)
def temp_input(self, job):
    for (job_, files) in self.dependencies[job].items():
        for f in filter(job_.temp_output.__contains__, files):
            (yield f)