code: def send_reply(self, context, reply):
          
  
          # context isn't used with cgi
          # Using sys.stdout.buffer.write() fails as stdout is on occasion monkey patched
          # to AsyncFile which doesn't support the buffer attribute.
          print("Status: 200 OK")
          print("Content-Type: application/json")
          print("Cache-Control: no-cache")
          print("Pragma: no-cache")
          print("Content-Length: %d" % len(reply))
          print()
          print(reply.decode())
docs: Sends a reply to a client.
  
          The client is usually identified by passing ``context`` as returned
          from the original :py:func:`receive_message` call.
  
          Messages must be bytes, it is up to the sender to convert the message
          beforehand. A non-bytes value raises a :py:exc:`TypeError`.
  
          :param any context: A context returned by :py:func:`receive_message`.
          :param bytes reply: A binary to send back as the reply.