It appears two single-line comments at the start of the run directive lead to a parsing error Invalid Python in the line following after.
The rule runs fine. The error message disappears when any of the two comment lines are deleted.
The error message is very odd as it doesn't even show a line number and file. Yet, I am sure the error originates here.
My Rule

The error message
