class A:

    def foo(self):
        pass


class B(A):

    def boo(Aself):
        pass


class C(B):

    def coo(self):
        pass


class D(C):
    pass
How to determine from which class a method was inherited from?