Awhile ago I haven't update this. So the previous method was outdated for some time.
A big thanks to Jakub Krompolc who has suggested a more effective solution which I should have rectify to this post earlier.
cmds.makeIdentity( 'jointName', a=1, r=1 )
"This will convert all rotations to joint orients. Unless your joint hierarchy contains non-resettable objects, like some shapes etc. That`s the only limitation."