class UI: def __init__(self, tree): self.x = 4 class PlayerUI(UI): def __init__(self, tree=None): UI.__init__(self, tree) class Test(UI): print UI.x