Python routine to analyze CMB data