modified code for 10/10 rating in pylint