fixed pylint errors