Template for XRD beamline scripting environment (Python)