code: def remove(self, obj):
          
          named = self.contents.get(obj.name.lower())
          if named:
              try:
                  named.remove(obj)
                  if len(named) == 0:
                      del self.contents[obj.name.lower()]
              except ValueError:
                  pass
docs: Remove obj from contents.