Updated Travis CI & badged. Pyflakes/PEP8 and fixes.