Should it be:

    self.send_response(200, content=response.text, headers={'Content-type': 'text/html'})

?