//const mkdirp = require('mkdirp')
const path = require("path");
//const bundle = require('./bundle')
const fs = require("fs");
const which = require("which");
const pythonExists = which.sync("python", { nothrow: true });

module.exports = async (req, res, file, bundlePath) => {
  if (!pythonExists) throw new Error("No 'python' found in the PATH.");
  res.send("Python handler is coming soon.");
};

@@ -219,85 +219,219 @@
 %7D);%0A
-%0Amodule.exports = async (req, res, file, bundlePath) =%3E %7B%0A  if (!pythonExists
+const python3Exists = which.sync(%22python3%22, %7B nothrow: true %7D);%0A%0Amodule.exports = async (req, res, file, bundlePath, basePath, bundleInfo) =%3E %7B%0A  const pythonExe = python3Exists %7C%7C pythonExists;%0A  if (!pythonExe
 ) th

update python shim to prefer python3