core: fix pylint warnings

these ERP5 Python Scripts were not covered by coding style tests
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner2

02:02:50

failed ERP5.UnitTest-TestRunner2

01:50:17