Add pylintrc and change code to conform to it