'Prepares server for serve requests.'

def prepare(self):

    if self.prepared:
        return
    self.socket.listen()
    for _ in xrange(self.threads):
        thread = Worker(self.tasks)
        thread.setDaemon(True)
        thread.start()
    self.prepared = True
