Fix Travis test config, and a few minor PEP8 violations.