def METHOD_NAME(data):
    for part in data:
        keywords = data[part]
        for k in keywords:
            v = keywords[k]
            # bloody YAML parser returns a mixture of unicode and str
            if not isinstance(v, six.text_type):
                v = v.decode("UTF-8")
            keywords[k] = v.split("|")
    return data