def finished(self, job):
    ' Return whether a job is finished. '
    return (job in self._finished)
Return whether a job is finished.
def finished(self, job):
    '  '
    return (job in self._finished)