Handy API - How to make it stroke x amount of times

I’m a bit new to all of this and need help making the handy api trigger the device to stroke a set amount of time.
I use python, but I can use something else if necessary.

I’m sorry if a similar topic already exists…
I looked at the docs but they were so confusing for me and I have little to no idea on what I am doing.