Why didn't we need this check in Python 2?