TravisCI: pep8 fix and import reduce from functools