class MLStripper(HTMLParser):

    def __init__(self):
        HTMLParser.__init__(self)

def read(self, data):
    self._lines = []
self.reset()
self.feed(data)
return ''.join(self._lines)

def handle_data(self, d):
    self._lines.append(d)
How to fix this AttributeError?