Creating addon for rotating fbx model in python
This sounds like a task that should be performed by the import FBX addon. The addon does include some options for rotation.

The first set of options allow you to define which axis is up and which is forward, if those two don't resolve the placement you may also need to try turning off the last option Use Pre/Post Rotation