How to run Python script from Windows with a rule?

Have you installed the exec binding?
Is the line you want to execute included in the exec.whitelist file?
You may find interesting informations in this thread