explain in simple and commented python code how one can calculate the distance between to N-dimensional vectors