Python tutorial autocorrelation