Added a preliminary pylintrc to the project.

and started to fix linting errors.