Source Calibration code and example scripts for SPIRE