lock_stat.py missing import