Some cleanups

- pyflakes
- remove unused imports
- 'check' method doesn't exist anymore, so change to 'update'
Merge pull request #6 from grigouze/cleanup_pyflakes

Some cleanups