Is it possible to get nx, ny, and nz values of an object's coordinates in blender? So in trying to do a script that writes these values, specifically for an object's XYZ coordinates for either the direction the object is facing. I've messed with matrix stuff before in blender but I'm not quite sure how these in particular would work. 

Edit:
NX, NY, NZ determine the direction the object is facing by calculating the normal the triangle the point is over.
Global representation of normal axes.

The global value of the  z axis z_axis = Vector((0, 0, 1)) of an object obj can be calculated using

nz = obj.matrix_world * z_axis


All can be calculated from the matrix world using,

nx, ny, nz =  [v.normalized() for v in obj.matrix_world.to_3x3().transposed()]