code: def event_text(self, event):
          
          logger.debug("error text for %s" % hex(event.EvtCode))
          len_ = 1024
          text_type = ctypes.c_char * len_
          text = text_type()
          error = self.library.Srv_EventText(ctypes.byref(event),
                                             ctypes.byref(text), len_)
          check_error(error)
          if six.PY2:
              return text.value
          else:
              return text.value.decode('ascii')
docs: Returns a textual explanation of a given event object
  
          :param event: an PSrvEvent struct object
          :returns: the error string