Structure: 1

#!/usr/bin/python2

class A(object):
def __init__(self):
print ‘Created Class:’, self.__class__.__name__
print ‘in A class…’

class B(A):
print ‘in B class…’

class C(A):
print ‘in C class…’

class D(B):
print ‘in D class…’

class E(B):
print ‘in E class…’

class F(C):
print ‘in F class…’

class H(D):
print ‘in H class…’

class G(E,F):
print ‘in G class…’

class J(F):
print ‘in J class…’

class I(G,H):
print ‘in I class…’

class K(I, J):
print ‘in K class…’

class L(A):
print ‘in L class…’
class M(K,L):
print ‘in M class…’

m = M()

outputs:

in A class…
in B class…
in C class…
in D class…
in E class…
in F class…
in H class…
in G class…
in J class…
in I class…
in K class…
in L class…
in M class…
Created Class: M