def METHOD_NAME(self, answer):
    """
    Set the response content type to text/html and serialize
    the content.
    :param anwser The response as a Python object
    """
    self.content_type = "text/html"
    self.body = answer.encode('utf-8')