title: argument 2 to map() must support iteration
body: <p>Hi i'm making a basic raycast engine so i think it would be nice to start with the minimap but the problem is that my class map ask for a mapGrid in the constructor and when i pass it python give me this error <code>argument 2 to map() must support iteration</code></p>
  
  <p>This is the code:
  Main part</p>
  
  <pre><code>import pygame
  def map(object):
      def __init__(self,grid,scale):
          self.grid= grid
          self.mapWidth= len(grid[0]) #Number of map blocks
          self.mapHeight= len(grid) 
          self.miniMapScale= scale #How many pixels to draw a map block
          self.miniWidth= self.mapWidth * self.miniMapScale #Size of the minimap
          self.miniHeight= self.mapHeight * self.miniMapScale
  
          self.rectGrid= grid
  
          for y in range(self.mapHeight):
              for x in range(self.mapWidth):
                  self.rectGrid[y][x]= pygame.Rect(x,y,self.miniWidth,self.miniHeight)
  
      def blitMiniMap():
          pass
  </code></pre>
  
  <p>Data file</p>
  
  <pre><code>mapGrid= [
      [1,1,1,1],
      [1,0,0,1],
      [1,0,0,1],
      [1,1,1,1]
  ]
  
  size = [640, 480]
  </code></pre>
  
  <p>map class</p>
  
  <pre><code>import pygame
  def map(object):
      def __init__(self,grid,scale):
          self.grid= grid
          self.mapWidth= len(grid[0]) #Number of map blocks
          self.mapHeight= len(grid) 
          self.miniMapScale= scale #How many pixels to draw a map block
          self.miniWidth= self.mapWidth * self.miniMapScale #Size of the minimap
          self.miniHeight= self.mapHeight * self.miniMapScale
  
          self.rectGrid= grid
  
          for y in range(self.mapHeight):
              for x in range(self.mapWidth):
                  self.rectGrid[y][x]= pygame.Rect(x,y,self.miniWidth,self.miniHeight)
  
      def blitMiniMap():
          pass 
  </code></pre>
  
  <p>Thanks.</p>