Speeding up Leo's beautifier involves transliterating leoTokens.py into Nim. I had also planned to transliterate Python's tokenize module into Nim.
But today I discovered that tokenize.py is a thin wrapper around C code! Transliterating and testing this C code would be a nightmare.
This discovery caused me a few minutes of consternation. My agony turned to ecstasy when I discovered nimpy, the Nim-Python bridge.
Summary
There is no need to transliterate (and test!) a Nim version of tokenize.py!!
Edward