For some Cockpit functionality additional packages are required. Cockpit can help with installing those by offering a simple dialog where the user accepts installation of new packages and after the installation is done the user can directly continue with the original action.
With python bridge each page might need all of its dependencies. Obvious solution is to "fix" every page not to crash when it misses any dependency and offer installing it. More advanced approach would be defining for each page all of its dependencies in manifest and then using other mechanisms either not to show page or disable it when it misses any dependency and create generic workflow how to install those. (new apps page, new shell functionality...)
On immutable operating systems we might just hide all pages. For more details see https://docs.google.com/document/d/1H_REI3GN8uzRutm1Wl4VPVNtCS5hwh5Yk1XYq5X7n6A/edit#