code: def read_string(cls, string):
          
          if PY3 and not isinstance(string, byte_types):
              string = string.encode()
  
          return cls.decode(string)
docs: Decodes a given bencoded string or bytestring.
  
          Returns decoded structure(s).
  
          :param str string:
          :rtype: list