Add portalocker.py to replace the fcntl