code cleanup with pylint