Add .pylintrc and clean code accordingly.

To use it :
$ pip install pylint
$ pylint --rcfile=.pylintrc sample