Install this either on your computer or your GameSH>
sudo apt-get update
sudo apt-get build-dep python-pygame
pip3 install pygame
https://github.com/ggravlingen/pytradfri/blob/master/script/install-coap-client.sh
but with sudo make install
in the last step
pip3 install pytradfri
ssh to your gameshell
cd apps/launcher/Menu/GameShell
git clone https://github.com/gabrielsson/cpi-tradfri.git
Make sure to fill out the tradfri.properties file with IP and key to your IKEA gateway
cd cpi-tradfri
nano tradfri.properties