class Foo: def test(self): print "Foo"; class Bar: def test(self): print "Bar"; class MyChild(Bar, Foo): def __init__(self): print "init" c = MyChild(); c.test();