Rework externals and python interpreter