You can use one of the following functions to get orientation data from a body:
Code:
quat = body.getQuat() #[x,y,z,w] quaternion rotation
euler = body.getEuler() #[yaw,pitch,roll] euler rotation in degrees
axisAngle = body.getAxisAngle() #[x,y,z,deg] axis-angle rotation
mat = body.getMatrix() #4x4 transform matrix including position and rotation
Hope this helps.