Make exception message match CPython