def is_alive(self):
    return (((self._cont is not None) and self._cont.is_pending()) or ((self._cont is None) and (not self._ended)))
def is_alive(self):
    return (((self._cont is not None) and self._cont.is_pending()) or ((self._cont is None) and (not self._ended)))