code: def read(text, name=None):
          
          doc = docutils.utils.new_document(name, SceneScript.settings)
          parser = docutils.parsers.rst.Parser()
          parser.parse(text, doc)
          return doc
docs: Read a block of text as a docutils document.
  
          :param str text: Scene script text.
          :param str name: An optional name for the document.
          :return: A document object.