I think this thread could be interesting for you Thoughts on an infrastructure for distributing Linux application bundles
I don’t think this all is doable with python scripts. (but a big part is)
- A program manager would be able to update/delete existing packages.
This point would need creating proper plugin for existing software manager like gnome-software or KDE Discover.
About a year ago I wanted to create this kind of plugin, but due to lack of time I haven’t finished it