code: def set_filters(self, filters):
          
          if not isinstance(filters, dict):
              raise Exception("filters must be a dict")
          self.filters = {}
          for key in filters.keys():
              value = filters[key]
              self.add_filter(key,value)
docs: set and validate filters dict