With the literal rules described it would not be blocked. A more detailed rule (in Open Snitch at least, not as familiar with the other variants) could match e.g. whether the process's parent tree contained the python binary rather than just if python is the process binding the socket.
Would it silently allow or would you still get the notif or whatever (iirc from littlesnitch years ago)?
OK, I see, so a limitation is also that I cannot block an individual script, I need to block a Python interpreter.