def __mul__(self, other):
if isinstance(other, numbers.Number):<EOL><INDENT>if other == <NUM_LIT:0>:<EOL><INDENT>return self.__class__()<EOL><DEDENT>return self.__class__({var: value * other for var, value<EOL>in iteritems(self._variables)},<EOL>self._offset * other)<EOL><DEDENT>return NotImplemented<EOL>
Multiply by scalar