Generally useful python code for N-dimensional vector math.