Raspberry Pi - Python Libraries

Hello, I am trying to integrate my LIFX light into a python script I built. What I would like is for the light to flash red when a button is pressed on the Raspberry Pi. I do not understand how to install and use the LifxLan protocol and how to set it up? Can someone please guide me on this?

Edit: Issue Solved

Used the HTTP API and, thanks to Daniel Hall’s great documentation, I managed it. I’m not sure how to delete the topic.