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