Corrected pylint errors