fix pyflakes errors
Merge pull request #9 from shawnps/pyflakes

fix pyflakes errors