If the connectors are the same, except the little "keys" then you can most likely trim them off with a Dremel and plug it in. I don't have a 97 FSM to confirm what the connector looks like or the actual pinout.
I still get conflicting info on when the AW4 sensors changed. Most of the info points to 98 as the year, and I was assuming that the connector changed from the old style to the new style at the same time. But your saying the 97 and 98 looks identical except for the keying? The old style had 2 rows of 16 pins. The new style has two rows of 13 pins. What does yours look like?