python 3 test fix