Fix tests on Python 2

They were running on Python 3 but not on 2.
Merge pull request #29 from sealevelresearch/fix-tests-on-python-2

Fix tests on Python 2