Why should the above code throw an `ImportError` on Python 3?