Setting sun direction on sky texture with an empty
Sun direction in the sky texture node uses values of normalized vector that can be taken directly from World Matrix.

X value - matrix_world[2][0]  
Y value - matrix_world[2][1]  
Z value - matrix_world[2][2]