Running the script gave me the error
File "./annotate_blast_hits.py", line 81, in get out.write(handle.read()) TypeError: write() argument must be str, not byte
Putting the argument of write in double quotation marks solved it, but then gave this error:
File "/.local/lib/python3.8/site-packages/Bio/Entrez/Parser.py", line 379, in parse raise TypeError("file should be opened in binary mode") TypeError: file should be opened in binary mode
The standalone file worked great for me