Sorry, I don't know python enough. However, the following should help.
An Excel application object has a Run method that takes a macro name along with arguments to it.
Suppose the book has a macro called test.
Sub test(ByVal i As Integer) MsgBox "hello world " & i End Sub
You can call this using Application.Run "test", 1234
This will invoke the macro and display a message with "hello world 1234".
source share