portalocker (conda): An easy library for Python file locking. It works on Windows, Linux, BSD and Unix systems and can even perform distributed locking. Naturally it also supports the with statement.
Keywords: distributed|lock|locking|python