Make tests work with Py3k (fixes #17)