Optimize python code for working with object names
<p>I have a pygtk Table with 16 squares, each of them containing a label. Label names are: label1, label2, label3, ..., label16.</p>

<p>I also have a timer that fires every <em>n</em> seconds. When the timer is fired one of the squares is highlighted (just set the font size of it to 18 and the font size of the rest to 12).</p>

<p>If there would be only 3 labels, the code would be something like this:</p>

<pre><code>def update_grid(self):
    if self.timer_id is not None:
        self.__actual_choice = (self.__actual_choice % 16)+1
        if self.__actual_choice == 1:
            self.label1.modify_font(self.__font_big)
            self.label2.modify_font(self.__font_small)
            self.label3.modify_font(self.__font_small)
        elif self.__actual_choice == 2:
            self.label1.modify_font(self.__font_small)
            self.label2.modify_font(self.__font_big)
            self.label3.modify_font(self.__font_small)
        elif self.__actual_choice == 3:
            self.label1.modify_font(self.__font_small)
            self.label2.modify_font(self.__font_small)
            self.label3.modify_font(self.__font_big)
</code></pre>

<p>But having 16 labels, the code would be huge. I wonder if there is a way in python of doing something like:</p>

<pre><code>            self.(label+"i").modify_font(self.__font_small)
</code></pre>
