I think it is great that he now has this capability, but a total ignorance of software engineering is going to continually bite this type of user. Instead of questioning Claude's solution, my friend thought he just needed a faster computer.
He was also using very sketchy Python imports when much safer, more mature options are available. Not knowing that you shouldn't use just any random Python package is a ticking time bomb... especially when his machine is connected directly to his corporate intranet.