Quick and dirty implementation of the python module