class Foo(Default):

    def __init__(self):
        self.bar = 1
self.baz = 'hi'
foo = Foo()
print(foo)
foo2 = Foo()
print(foo == foo2)
foo2.bar = 100
print(foo == foo2)
Default method implementations in python(__str__,__eq__,__repr__,ect.)