modified test_types.py to be compatible with python 3

Python 3 doesn't support Error.message, but both Python 2 and Python 3 support converting Error to string by str(err). tests.test_types.test_invalid_isointerval_error was failing in Python 3 before, but now it passes.