Calculating cross correlation and auto correlation with python