How to calculate the distance between N dimensional vectors in pure Python?