remove pylint warnings and migrate todos