Provide functions for check if file is locked.
weblib.lock.
assert_lock
If file is locked then terminate program else lock file.
set_lock
Try to lock file and write PID.
Return the status of operation.