Apply pep8 style guide and add Travis configuration.

Travis is a service that allows open source projects to
run tests. It gets notified via the service hook in the GitHub
settings for this repository.