def write_output(self, out):
        if out:
            content_type = self.response.disp_out_type_
            out_suffix = None
            if(content_type == JSON_CONTENT_TYPE):
                # check for json callback
                callback = self.get_query_param(QUERY_CALLBACK_PARAM)
                if callback:
                    self.response.out.write(callback)
                    self.response.out.write("(")
                    out_suffix = ");"

            self.response.headers[CONTENT_TYPE_HEADER] = content_type
            self.response.out.write(out)
            if out_suffix:
                self.response.out.write(out_suffix)
.. todo::
dataset/ETHPy150Open jahlborn/appengine-rest-server/src/main/python/rest/__init__.py/Dispatcher.write_output--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/preprocessing.py/ShuffleAndSplit.apply