Run against multiple environments on Travis CI
Adapt test script for py3k compatibility