#94: use msvcrt.locking for windows, as fcntl.flock for Linux