minor changes for pylint warnings