plutil is an open source, MIT licensed library useful for writing QGis plugins.
pip install qgis-plutil
You can also download/clone the source, in which case you have to:
git clone https://github.com/pyqgis/plutil.git
python setup.py install
To contribute a patch clone the repo, create a new branch, install in develop mode:
python setup.py develop