Fix the creation of the dict for fedmsg