On line 124, you are trying to use brackets to call the function
list.index
That line should look like this self.color = shape_colors[shapes.index(shape)]