Adapt test script for py3k compatibility
Merge pull request #54 from sjakobi/py3k-travis

Adapt test script for py3k compatibility