fixed pylint minor warnings