python3 fix in test()