code: def serialize(self):
          
          # uuid is not in *_properties
          res = {
              'uuid': self.uuid
          }
          for prop in self.__class__.properties:
              if not hasattr(self, prop):
                  continue
  
              res[prop] = getattr(self, prop)
              if isinstance(self.__class__.properties[prop], SetProp):
                  res[prop] = list(getattr(self, prop))
  
          return res
docs: This function serializes into a simple dictionary object.
  
          It is used when transferring data to other daemons over the network (http)
  
          Here is the generic function that simply export attributes declared in the
          properties dictionary of the object.
  
          Note that a SetProp property will be serialized as a list.
  
          :return: Dictionary containing key and value from properties
          :rtype: dict