Some python code for your Razer RGB LED keyboard. Enjoy!
Here's the drivers repo that worked for my 2016 Razer Blade: https://github.com/openrazer/openrazer-drivers
This is another repo that works for a lot of other machines and peripherals: https://github.com/terrycain/razer-drivers