Pressing a parameter button from python?

This may be simple but I can’t seem to nail it.
Can I press a button in the parameters page from python?
Specifically I want to press the recreate all button of a replicator.
I do this
op(‘replicator1’).par.recreateall = 0
op(‘replicator1’).par.recreateall = 1

but it only works the first time.

found it

op(‘replicator1’).par.recreateall.pulse()

did the trick