Populated html onto page by using self.write