Initializes text document for note-taking (python)