Maya to Blender fbx issues

I am attempting to import a fairly simple skinned skeleton into Blender without success. The fbx loads in other applications (Max, Windows 3D Viewer) just fine, but for some reason in Blender some of the joint orientations are flipped (or arbitrarily wrong).

I have used this script with some success, but it isn’t consistent.