python scripts to automate image extraction and calibration