If you are having trouble with the get orientation function have a look at this.
It just shows the orientation that you can move around with the arrow keys. p prints to the console, r resets, space sets the orientation to the xyz matrix in the python script. just change the
X = [1.0, 0.0, 0.0] Y = [0.0, 1.0, 0.0] Z = [-0.0, 0.0, 1.0]
to change the orientation. then hit space in the game to set it.
Hope you understand that
edit: Added a screenshot
edit: now you can use your mouse to move
Orientation Tests.blend (356 KB)