Portalocker is a Python library that provies an easy API to file locking.
