With Grok's help I made a revised version of this python script that both automatically resets the pic by connecting RTS to /MCLR eliminating the need to manually reset it and to press ENTER and also uses the original devices.db from the AN1310 v1.05r Windows utility
an1310.py
devices.db.zip