Python Cross Correlation Function