def needrun(self, job):
    'Return whether a given job needs to be executed.'
    return (job in self._needrun)
Return whether a given job needs to be executed.
def needrun(self, job):
    
    return (job in self._needrun)