Replace filelock module with locket.py