corrected pylint errors