Using .min and .max on scipy arrays instead of min() max(); seems to be more portable.