mkindex.py works with Python3 (after some modifications a few months ago), to be called via "make index".
OK, I was confused by
Note: requires Python Imaging Library (PIL), ex. 'python-imaging' Debian package. # TODO this script needs to be ported to Python 3 properly
in the script and the fact that I didn't find the `python-imaging` package - it's probably renamed to something else now.
It's probably https://packages.debian.org/bookworm/python3-pil. And the unclear comment is probably from me, I think to remember that I touched this script to make it run with Python3 but stopped at the point when it ran and thought this should be done better later.
Anyway, I can do this after merging as well.
Good, merged. I'll make it your problem now :-).
"Thanks" :). Problem solved.