It’s not finished yet, but what I’ve got so far is available in GitHub. You can grab it (and a few other things I’ve stashed away) by running:
git clone https://github.com/treebuilder/scripts.git
The work is based heavily on this script by Kevin Ostrin. His approach mirrored the one I’ve been taking with an earlier attempt to write an enumeration script which I called remenum.py. Once I found Kevin’s work, I realized it’d be faster to adapt his code to my ideas than to finish remenum.py.
So, the work-in-progress is called