clean up some pyflakes warnings