[core] code cleaning (pylint)