pylint minor issues fixes