I found a thread on the G35 - you just need the wiring diagram for the 370Z:
G35 Automatic Shifter Modification : Infiniti Articles
Looking in the hard to read
service manual, looks like connector M137, pins 1 & 3 should be reversed. M137 is apparently the control device harness connector.