Yes, AI can greatly automate workflow. Though, I always have a double-check as there may be mistakes... As you said, your Python script wasn't perect... That's why I always have backup of my data to have a chance to restore my prevous work if there is a mistake.