Automated Optical Inspection Python Code