travis-ci changes

Adds testing of pep8.
Fixes import error.