Clean up code for flake8 and add travis support.
Add travis yml.