fix Python 3 test