Simple library to acces the Foreman API, the full documentation can be found http://david-caro.github.io/python-foreman.
Execute as root: > python setup.py sdist > pip install ./dist/python-foreman-*.tar.gz
The plugins should be a simple module file with the a dictionary named DEFS with the definitions of the new methods as in the definitions.py file