kojid contains dict.keys()[0], which doesn't work under py3
PR #1263
Commit 584f4cad fixes this issue
Commit 8d62b5f1 fixes this issue
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/1262
Please continue any further discussion there.