why not `if len(self.variables) != 1: raise error...`?  (on 2 lines of course)