Working "correct" version of prewhitening using np.correlate