#define class to extend class Games(object): pass """ To extend the Games class, you do the following: class Games(extend, Games): ....[Add class body] You need to add extend as the first class to inherit from followed by the class name you are trying to extend. """ class Games(extend, Games): class Users(object): def show(self): self.value = 10 print self.value class Games(extend, Games): class Settings(object): def show(self): self.value = 20 print self.value class Games(extend, Games): class Maker(object): class Matter(object): class Matters(object): pass print Games.Users.__name__ #will print Games.Users rather than Users print Games.Settings.__name__#will print Games.Settings rather than Settings print Games.Maker.Matter.__name__#will print Games.Maker.Matter rather than Matter