`from` section should be before the `import` section. it just looks nicer that way. Also described in https://github.com/akozumpl/dnf/wiki/Hacking

I noticed this a couple of other places too.