Python exporter set armature to rest pose while exporting meshes
I got armature.data.pose_position change to work
After changing to REST I had to call context.scene.update() and it calculates positions in rest pose. I change it once to pose when exporting keyframes and it is working as well.