Input thread

def __input_thread(self):
        "Input thread"
        last_input = time.time()
        while self.alive:
            x = input(config.prompt)
            self.issue_alert = (time.time() - last_input) > 10
            last_input = time.time()
            msg = self.name + ': ' + x
            if self.mode == 'c':  # client
                utils.msg(msg, self.__s)
            else:  # server
                with self.__client_list_lock:
                    for com in self.clients:
                        utils.msg(msg, com)