fixed several pylint errors