# class Base(object) class Base: def foo(self): return 42 class NotBase: def foo(self): return 43 class A(NotBase, Base): def bar(self): return 41