pyflakes fixes. thanks @kylebeauchamp