def method1(self):
    print('Hello foo')
method2 = f1


class Bar(Foo):

    def method1(self):
        print('Hello bar')
method2 = f1
b = Bar()
f = Foo()
How to detect method overloading in subclasses in python?