a small python script to calculate the madelung sum of an infinite lattice