fixed broken Python 3 tests