scripts: general fixes after a pyflakes run - including actual bug fixes in maintain_users.py.
build: oops, setting this variable is a good idea