Code for reducing and analyzing LMC/SMC data