travis: check for pyflakes errors
Remove importer
__init__: don't use undefined imports
pyflakes: use 'HERP' instead of HERP

Probably this is some outdated code and will be removed
junit: fix doctest syntax
junit: import the package to fix doctests
pyflakes: add missing imports
pyflakes: fix unused imports and vars
pyflakes: fix testsuite