PY are Python script files. By default Python is not installed on Windows. Usually, once Python is installed, .py files are executed via the Python interpreter upon being double clicked.
Block the execution of PY files. Whitelist users/groups when required.