Correcting the python package

I corrected a little issue, changing a this into a self as it is written in python. 
I also wrote a setup.py and put everything to be compatible with the python packaging recommendation. You could add some additional information into the package.