How to use Unicorn PHAT from Homebridge / Bash

Hi there!
I recently purchased a Uniconr Phat and wanted to use it with Homebridge, calling a phython script from homebridge / bash does not seem to allways work correcty

I´was wondering it there is any other way to use the Unicorn Phat from a raspberry pi / homebridge / bash

Thank you

I can call the python scripts from raspberry pi shell correctly with sudo phython snow.py but when I am “inside” homebridge I can´t seem to call the scripts
I need to be inside homebridge to be able to use the unicorn phat for the project I have in mind

Here are the commands I use inside the homebridge shell and the errors returned

Thank you

homebridge@raspberrypi:/var/lib/homebridge/unicorn-hat-master/examples phython snow.py bash: phython: orden no encontrada homebridge@raspberrypi:/var/lib/homebridge/unicorn-hat-master/examples sudo phython snow.py
sudo: phython: command not found

homebridge@raspberrypi:/home/pi/unicorn-hat-master/examples $ sudo python snow.py
Can’t open /dev/mem: Operation not permitted
Traceback (most recent call last):
File “snow.py”, line 6, in
import unicornhat as unicorn
File “/usr/local/lib/python2.7/dist-packages/unicornhat.py”, line 35, in
ws2812.begin()
File “/usr/local/lib/python2.7/dist-packages/rpi_ws281x/rpi_ws281x.py”, line 130, in begin
raise RuntimeError(‘ws2811_init failed with code {0} ({1})’.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -5 (mmap() failed)