def check_dynamic(self):
    'Check dynamic output and update downstream rules if necessary.'
    if self.has_dynamic_rules:
        for job in filter((lambda job: (job.dynamic_output and (not self.needrun(job)))), self.jobs):
            self.update_dynamic(job)
        self.postprocess()
Check dynamic output and update downstream rules if necessary.
def check_dynamic(self):
    
    if self.has_dynamic_rules:
        for job in filter((lambda job: (job.dynamic_output and (not self.needrun(job)))), self.jobs):
            self.update_dynamic(job)
        self.postprocess()