flake8 cleanup in library and functemplate
avoid extra output in test mp3gain run
enable unused import checking

The "noqa" marker is for exceptions such as these.