Fix pep8 errors

Also add a note for future refactoring once we have proper tests
Add Apache License header
Add Apache License header and make standalone tests
Add travis-ci configwq