Clone the repository from GitHub by:
git clone https://github.com/pearjo/mpl2tex.git
In order to use the Python module you need the matplotlib package.
matplotlib
Install mpl2tex by doing:
python setup.py install