[FEATURE] Fix error with self variable - ready for merge

defined variables
I don't think we should comment every single `pylint` warning. I also don't think this particular case can be straightened out easily.