class Shape(object): def getVar(self, varid): return self.vars[varid] def setVar(self, varid, value): self.vars[varid] = value