def dump(self, prefix=None, f=sys.stdout, print_name=True, parent_path=None):
    f.write(str(self))
def dump(self, prefix=None, f=sys.stdout, print_name=True, parent_path=None):
    f.write(str(self))