Create lock.py