add coverage.py for travis tests and some import/pep8 cleanup