core: fix pylint warnings

these ERP5 Python Scripts were not covered by coding style tests
2 jobs for <span class="ref-name">feat/erp5_python_scripts</span> in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner2

02:02:50

failed ERP5.UnitTest-TestRunner2

01:50:17