clean code based on pylint