some fixes suggestsed by pylint