fix nicer ImportError message on Python 3

Exception.message is not defined on Python 3

closes #6014