Here's an example Python script using the PS4 API: