Made version.py script Python3 compatible.
Added travis file to run tests.