Push most work of ts.addInstall() over to python