Fix test failures introduced by the mime type pull request merge; pep8.