Trilobot

I have a Trilobot and have been trying to add a wiimote to the controller_mapping.py program. I received an alternative program with the wiimote included. I have found the controller_mapping.py file in usr/local/lib/python3.9/dist_packages/trilobot but what ever i do i cannot get my alternative file into this directory. i have tried copying it, i get error. i open the grogram in a editor, copy new lines into the program and it will not let me save the altered file. is the whole directories protected/ if so how do i remove the protection. help