Fix Pylint violations script

@singingwolfboy what do you think of this as a fix?