Made ampl_to_SDM.py usable