python: use the variable
a few minor cleanups, mostly getting rid of old stuff