Stop using fake dnf object, use the real thing. This will help catch problems with dnf returning unexpected types like VectorString.
This lives under /api/v0/projects/source/* See the documentation for details