from a import A print "defining B" class B(A): def __init__(): print 'B' import c