for details see https://pagure.io/pungi/issue/253
the gist is that if you try to read the profile in threaded code it sometimes fails.
fixed by https://pagure.io/koji/pull-request/59
This issue has been migrated to Fedora Forge: https://forge.fedoraproject.org/koji/koji/issues/58
Please continue any further discussion there.