Way less globals

Lets see if the commit comments appear here
It's just pylint complaining about "unused variables". Prefixing with `_` fixes that.