ndr/py_security: mod patch reports errors