Silence pyflakes

And pick up one bug as a consequence.