def write(self, output):
if self.headers_sent is False:<EOL><INDENT>self.send_headers()<EOL><DEDENT>self.wfile.write(output)<EOL>
Write to the response stream and send default headers if they haven't been sent yet