File-based locks for Python
Locket implements a lock that can be used by multiple processes provided they use the same path.