Added automatic filesaving to sweep_script using np.savez.