py: Make compiler return a proper exception on SyntaxError.