Check Python exceptions are rethrown to PHP.