some fixes suggestsed by pylint
more cleaning thanks to pylint