fix some pyflakes issues