If you want to achieve the direction x,y,z offset based a current reference point, you can write the function Offset
Note: In python, if a= [0, 1, 2, 3] b=a, then if change the b value, a value will also be changed. Recommend use copy function.
def Offs(p,x,y,z):
out = p.copy()
out[0] = out[0]+x
out[1] = out[1]+y
out[2] = out[2]+z
return out