code: def cleanup(self):
          
          self.lock.acquire()
          logger.debug('Acquired lock in cleanup for ' + str(self))
          self.children = [child for child in self.children if child.is_alive()]
          self.lock.release()
docs: Clean up finished children.
  
          :return: None