def refactor_permissions()

in main.py [0:0]


def refactor_permissions(refactor_list, change_from, change_to):
    for script in refactor_list:
        file_path = glob.glob(script)[0]
        with open(file_path, 'r') as file:
            initial = file.read()
            if change_from not in initial:
                change_from = change_from.replace('"', "'")
                change_to = change_to.replace('"', "'")
            refactored = initial.replace(change_from, change_to)
        with open(file_path, 'w') as file:
            file.write(refactored)