fix for broken tests on python3