In order to use this you need to have https://github.com/openrazer/openrazer-drivers setup and working.
Turn off the LEDs
$ razercli off
Turn all the LEDS to 'ffffff'
$ razercli static ffffff
Turn all the LEDS to salom
$ razercli static salom
Set brightness to 50
from openrazer import Keyboard
kb = Keyboard()
kb.brightness = 50
Set mode to reactive
from openrazer import Keyboard
kb = Keyboard()
kb.mode_reactive('ff00ff')