Fix invalid syntax with ImportError (Python3).