Move some sutekh specific things out of base
pyflakes cleanups
Drop unused old code
Add robustness fix
Tweak import and naming to be less Sutekh specific