code: function getPythonExecutable(options, platform) {
      if (options.virtualenv) {
        var isWin = /^win/.test(platform);
        var pythonExec = isWin ?
          path.join(options.virtualenv, 'Scripts', 'python.exe') :
          path.join(options.virtualenv, 'bin', 'python');
        delete options.virtualenv;
        return pythonExec;
      } else {
        return 'python';
      }
    }
docs: Get the path to the python executable, using the options.virtualenv parameter. Will remove the virtualenv parameter from the options object if present