Change Orientation of Bones Hello Blender Community,

I have rigged a robot-arm and now I want to import the Rotations for the Animation with a python script.
However The Normals of the Bones aren't convenient for the Animation and I can't correct them with "roll". Is there any way to exchange the y-Axis with the x-Axis/z-Axis of the Normals of the Bone?

You can see the Axes in the Picture:
While in the edit mode, select the bones and press "W" on your keyboard, you will get options