For the error:
TypeError: takes exactly 1 argument (2 given)
With the following class method:
def extractAll(tag): ... <
try using:
def extractAll(self,tag):
attention to self