Python rewrite, take 2

Fix git repos in subdirectories.