A highlighting word prompt

I am currently making a python script that does one of my homework assignments for me. For the assignment I have to copy text from a paper and replace the complicated words with simple synonyms.

I have already created OCR recognition with tesseract to convert the photo to text but now I need the program to store words I highlighted or clicked on.

I need the best way to:

  1. open a viewer for the text
  2. edit the text to be more accurate
  3. highlight specific words
  4. store highlighted words in the easiest way to parse through them

I think I am going to use some type of Microsoft Word package to read through highlighted words in a .docs filetype like this but is there an easier way to do this.

here is my code:

P.S. Am I doing try, except, else errors correct? this is my first time using them lol