In general, yes. Depends how finnicky you want to get. I take it from
your question that you're pretty much unfamiliar with the Windows
Security APIs and structures? There's a quite a bit of information
around on the subject, but have a look at this first which is at
least Python-oriented:
http://timgolden.me.uk/python/win32_how_do_i/add-security-to-a-file.html
The trouble is that do what you want, you need to use the AccessCheck
API (or emulate its functionality) and this isn't currently exposed by
the pywin32 modules. You could run it up yourself with ctypes or by
creating a quick extension for the purpose. Alternatively, as I say,
you could emulate by scanning the ACLs/ACEs and trying to apply some
suitable logic. Frankly, I'd have thought this was harder work :)
Hope that helps
TJG