Fix Python3 test support.