code: def set_python(self, value):
          
          if self.multiselect:
              value = value or []
              elements = []
  
              for element in value:
                  self.validate_value(element)
                  elements.append(element)
  
              value = elements
          else:
              self.validate_value(value)
  
          self._set(value)
docs: Override to remove key from raw data when empty to work with server 2.16+ validation