Err..virsh.dumpxml() is defined like this:
def dumpxml(name, to_file="", **dargs):

It doesn't contain 'extra'. And modifiy it to dumpxml(name, extra=='', to_file="", **dargs): maybe make a large effec