Seeking Advice on the best method for controlling bones via script

So Im looking for the best method to control my face rigg controller via a script, for mixing different controller bones together to make creating expressions faster while animating, especially for creating vowels; I was thinking about using click button system or even a slider.

Is it possible to execute python code this way?