And the reason why `lockfile` doesn't use `flock()...
# general
a
And the reason why
lockfile
doesn't use
flock()
is explained in the https://pypi.python.org/pypi/lockfile documentation. Its for portability between *NIX and windows implementations. There are other locking schemes you can use, but it isn't clear that any of them share or solve the stale lockfile issue.