def cleanup(self):
        """
        Clean up finished children.

        :return: None
        """
        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()
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 ( )
Clean up finished children.

        :return: None