various bugfixing related to pylint debugging