Travis test and PEP8 refactoring