The existence of fileKey() suggests to me that the os module should have a new callable that'll detect filesystem race conditions, so that it can be abstracted as needed in different interpreters.
Naturally, it may never find its way into Python 2.x, but maybe for 3.x.