def __init__(self, max_size=-1, client_timeout=-1, autoclose=False,
                 **client_kwargs):
        self.max_size = max_size
        self.client_timeout = client_timeout
        self.client_kwargs = client_kwargs
        self.__ioloop = client_kwargs.get('ioloop',
                                          tornado.ioloop.IOLoop.instance())
        self.autoclose = autoclose
        self.__pool = deque()
        if self.max_size != -1:
            self.__sem = tornado.locks.Semaphore(self.max_size)
        else:
            self.__sem = None
        self.__autoclose_periodic = None
        if self.autoclose and self.client_timeout > 0:
            every = int(self.client_timeout) * 100
            self.__autoclose_periodic = \
                tornado.ioloop.PeriodicCallback(self._autoclose, every,
                                                io_loop=self.__ioloop)
            self.__autoclose_periodic.start()
Convert me into a wire-encoded string.
dataset/ETHPy150Open thefab/tornadis/tornadis/pool.py/ClientPool.__init__--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/amp.py/AmpBox.serialize