class MyReceiver(object):

    def start(self):
        """Start the listening service"""
self.smtp = CustomSMTPServer(('0.0.0.0', 25), None)
self.thread = threading.Thread(target=asyncore.loop, kwargs={'timeout': 1})
self.thread.start()

def stop(self):
    """Stop listening now to port 25"""
self.smtp.close()
self.thread.join()

def count(self):
    pass
How to handle asyncore within a class in python, without blocking anything?