Stupid mistake, os.scandir is not recursive... Patch by @brecht, thanks.
The other one (sphinx_doc_gen.sh) needs an ssh account on the server to work - and I hate bash, too! :P