Add support for py.test, travis-ci and coveralls.