The problem is that you're missing a self going into the parent class. If your parent is a singleton then a @staticmethod should work.
class X():
x=1
@staticmethod
def getx():
return X.x
class Y(X):
y=2
def getyx(self):
return X.getx()+self.y
wx = Y()
wx.getyx()
3