Autocrop in Natron

Hi,
I have a large number of images that I would like to automatically crop, based on the alpha channel, and output.
In Photoshop there is trim, but batch in Photoshop is painfully slow.
There is an autocrop python script for Nuke, but I have no idea if it can be used in Natron in any way.
https://learn.foundry.com/nuke/developers/13.2/pythondevguide/_autosummary/nukescripts.autocrop.html

Does anyone have any ideas on how to do this?
Thanks