Fix .travis.yml and setup.py

Also replace wrong import in test_configuration.py.