Added a pylintrc file, and made some changes to utils.py to bring it into line with what the linter suggests

to run the linter, use pylint --rcfile=pylintrc yourfile.py