this is the function that is getting the permission error:
def traverse_registry_tree(hkey, keypath, reg_dict): key = winreg.OpenKey(hkey, keypath, 0, win