code: def _send_string(self,value):
          
  
          if type(value) != bytes:
              value = "{}".format(value).encode("ascii")
  
          return value
docs: Convert a string to a bytes object.  If value is not a string, it is
          be converted to one with a standard string.format call.