I am not very familiar with how to work with the world matrix in python. I have been doing some reading on how they work, but still a little confused about how to find the world x, y, and z rotation.

Getting the location is easy enough

world_matrix = bpy.context.object.matrix_world

x_loc = world_matrix[0][3]

y_loc = world_matrix[1][3]

z_loc = world_matrix[2][3]

But rotation seems a bit more difficult. Sorry for the basic question, but can anyone point me in the right direction on how to find this information. Thanks.