Update raise syntax for Python3 compatibility.