do lock file deletion in run.py