fix tests to run on Python 3.4