def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def _scale_vars(s, v_list):
  """Scale all variables in v_list by s."""
  return [s * v for v in v_list]