Python gamma spectrometry analysis