Spike detection with stdev was not working (no attribute stdev)

I just changed np.stdev with np.std