User:Psiĥedelisto/VisualEditor ref namer.py

The VisualEditor, (very annoyingly!), doesn't name references added by users, and gives them names like,  , etc. This script fixes that automatically. Might be buggy, only ever tested on osteogenesis imperfecta and furry fandom.

Requires mwparserfromhell. Input filename is first and only argument. Outputs completed wiki page to stdout, and some info on what changed to stderr.