def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def get(self, key, default=None):
        try:
            value = self[key]
        except KeyError:
            value = self._to_python(default)
        return value