Add a subprocess_flags to suppress any windows pop-ups that happens if AMS crashes. The pop-ups are a problem because they prevent the process from finishing until the user clicks OK:.
Hack workaround a bug in Scipy.stats. The bug is caused by a fortran module which registers a hook on Ctr-C. This means the Ctr-C can't be used as a keyboard interrupt in python.