Two Point Correlation Function Python