mv a filelock implementation to filelock.py