Rasspbery Pi lxc container /dev/mem

Hello everyone, i m new in lxc/lxd world and i m trying to run python script on lxc container that is using RPi.GPIO. Unfortunately after running that on the container i m getting this: “RuntimeError : Not running on RPi!”. I saw this issue is linked with permissions to /dev/mem. I tried everything that i found in other forums but everything went wrong.

Thanks for help, greetings Wojciech.