Possible fix for failing tests on travis-ci on Py3.x