fixes pylint warnings