def norm(vector):
    """Makes a vector unit length.
    If original vLen is 0, leave vector as [0,...]"""
    vLen = sum([e**2 for e in vector])**(1/2)
    if vLen != 0:
        return [e/vLen for e in vector]
    else:
        return [0 for e in vector]