old_contents: {
    "targets": [
      {
        "target_name": "binding",
        "sources": [
          "src/binding.cc",
          "src/utils.cc",
          "src/py_object_wrapper.cc"
        ],
        "conditions": [
          ['OS=="mac"', {
              "xcode_settings": {
                "OTHER_CFLAGS": [
                  "-Wno-error=unused-command-line-argument",
                  "<!(/usr/bin/python-config --cflags)"
                ],
                "OTHER_LDFLAGS": [
                  "<!(/usr/bin/python-config --ldflags)"
                ]
              }
          }, { # not OSX
            "cflags": [
              "<!(python-config --cflags)"
            ],
            "libraries": [
              "<!(python-config --libs)"
            ]
          }]
        ]
      }
    ]
  }
  
new_contents: {
    "targets": [
      {
        "target_name": "binding",
        "sources": [
          "src/binding.cc",
          "src/utils.cc",
          "src/py_object_wrapper.cc"
        ],
        "conditions": [
          ['OS=="mac"', {
              "xcode_settings": {
                "OTHER_CFLAGS": [
                  "-Wno-error=unused-command-line-argument",
                  "<!(python-config --cflags)"
                ],
                "OTHER_LDFLAGS": [
                  "<!(python-config --ldflags)"
                ]
              }
          }, { # not OSX
            "cflags": [
              "<!(python-config --cflags)"
            ],
            "libraries": [
              "<!(python-config --libs)"
            ]
          }]
        ]
      }
    ]
  }
  
subject: remove absolute path from call to python-config on mac in case you're not using the preinstalled python