#!/usr/bin/env python class UI: def __init__(self, tree): self.x = 4 class PlayerUI(UI): def __init__(self, tree=None): UI.__init__(self, tree) class Test(UI): def __init__(self, someui): self.myui = someui # Neither of these work.. print self.myui.x if __name__ == "__main__": PlayerUI() Test()