Binary package “python-fasteners” in ubuntu bionic

provides useful locks - Python 2.7

 Fasteners is a Python package that provides useful locks. It includes locking
 decorator (that acquires instance objects lock(s), acquires on method entry
 and releases on method exit), reader-writer locks, inter-process locks and
 generic lock helpers.
 .
 This package contains the Python 2.7 module.