cutils is a collection of small but useful and widely applicable functions. Since it only uses the standard library, it is extremely lightweight and portable.
The easiest way is to install cutils is from PyPI using pip:
pip install pycutils
import cutils