Data Reduction Pipeline for the MMT and Magellan Infrared Spectrograph. (4th January 2016)