In order to remove all the files from the repository after they have been deleted from disk you have a couple of options.
I had a little doubt about when to do the return if you have a big if, something like the following function:
The radio buttons in HTML come in handy when the user should select only one option in a form.
Some months ago I started to learn Python, I found a lot of resources and not all of them were really useful, they were either for non-programmers or too long for an introduction. After some research I came up with a list of resources.