Union of two objects with Python
The Info Window shows Python statements for user actions.  You can find the command invoked for Bool Tool there.
For example
bpy.ops.object.booltool_auto_difference()
was found after a Bool Tool Difference operation.
You may copy and  paste from the Info Window.