This fixes some pylint 'redefined builtins' warnings. While I was here, I fixed the others too by renaming a few local variables.
I'm not really sure why I called it jwack. I think it was kind of a wack jobserver(tm). But nowadays most of the wack-ness is gone.