Python can be fast — dnf is pretty fine, and although it has no relation to package managers, my most favorite example is the kitty terminal emulator. Most of it is written in Python, but you don't feel that at all. It feels like pure C. I refused to even try it for a long time, but have been hooked for several years now.