File-based locks for Python for Linux and Windows