mid_converter script cleanup