Creating simple GUI to change variables in script

There are libraries that can provide buttons.

g4p or controlp5

They come with lot of examples