fix some things that pyflakes complained about