title: Creating a matrix of objects in python
body: <p>I need to make a matrix of objects in python. I have found other solutions in various languages however cannot find a reliable and efficient method to do this in python.</p>
  
  <p>Given the class</p>
  
  <pre><code>class Cell():
      def __init__(self):
          self.value = none 
          self.attribute1 = False
          self.attribute2 = False
  </code></pre>
  
  <p>I want to make a matrix of multiple 'cells' as efficiently as possible. Since the size of the matrix will be larger than 20 by 20, an iterative method would be useful. Any contributions are helpful</p>