def copy_to_unicode(element):

    if isinstance(element, dict):
        return {
            key: copy_to_unicode(val)
            for key, val in element.items()
        }
    elif isinstance(element, list):
        return list(map(copy_to_unicode, element))
    else:
        try:
            # A dirty way to convert to unicode in python 2 + 3.3+
            return u''.join(element)
        except TypeError:
            return element
Updates the Windows registry entry for the configuration file path.
dataset/ETHPy150Open CenterForOpenScience/scrapi/scrapi/util.py/copy_to_unicode--crossover with--dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/platform_windows.py/_set_config_path_registry_entry