Actually in the code I am using self.matrices as an instance variable, the class variable was defined only to make pylint happy, not used. I am removing it since it cause confusion, and let's ignore pylint.