def __init__(self): self.services = [] self.tg = ThreadGroup() # signal that the service is done shutting itself down: self.done = event.Event()