fixed failures in Python3