Remove old snap data for uninstalled snap apps with Python

Snaps do have a purge argument but I always forget to use it. I wrote a script in Python to help with my laziness. This will only remove snap data for apps that have been uninstalled. If you want to keep the data and configs for some apps you will need to include the name in preserve list. This could be altered to handle Flatpak apps as well.

Python