def simxGetObjectOrientation(clientID, objectHandle, relativeToObjectHandle, operationMode):
    '''
    Please have a look at the function description/documentation in the V-REP user manual
    '''
    eulerAngles = (ct.c_float*3)()
    ret = c_GetObjectOrientation(clientID, objectHandle, relativeToObjectHandle, eulerAngles, operationMode)
    arr = []
    for i in range(3):
        arr.append(eulerAngles[i])
    return ret, arr
def simxGetObjectOrientation ( clientID , objectHandle , relativeToObjectHandle , operationMode ) : eulerAngles = ( ct . c_float * 3 ) ( ) ret = c_GetObjectOrientation ( clientID , objectHandle , relativeToObjectHandle , eulerAngles , operationMode ) arr = [ ] for i in range ( 3 ) : arr . append ( eulerAngles [ i ] ) return ret , arr
Please have a look at the function description/documentation in the V-REP user manual