Copied version of Dispersion.py to print pairwise interaction table