You can find a "Prepare Script for Stream Deck" command in the main menu:
(the code examples below are a bit out-dated)