initial python stub which computes pairwise distances