Dealing with some failures in Python 3