>Law is way closer to engineering than medicine, which imho is one of the professions that's going to be automated away sooner rather than late
>The job of a doctor is at least partly to memorize a bunch of rules that take symptoms as input and return a diagnosis. Why is that not a python script?
"X is just a system! Why is this not automated?" is a common engineer mindset :) Unfortunately, X is just a system is only a good approximation if you don't actually understand much about what's going on. When you actually zoom in on the problem, the rough edges and hidden complexity start to become apparent, and your abstraction is no longer useful.
Computers are incredibly simple machines when compared to most messy real world systems, and we still have a heap of trouble dealing with them.