Update exception return message

- Update exception return message for Python 3