Script re-written, now using EMAN2 commands