fixed failing python 3 test