fixed some glitches thanks to Pylint