Screw it.
I'm doing the utils in Java since all the tools are there already. I can accept a Java solution knowing I can do what I want later.
Eliminating Sigil and Calibre from my workflow completely is more important than my sense of aesthetics being offended.
And…I can do it right at my leisure.