fixed the switched arguments for ext and non-ext deadtime in optimize_dt.py