make flake8 happy except long lines

and the pkg_resources import - wasn't sure if that had some magic side-effects