Python program to find the sum of the absolute difference between all pairs in a list