Explicitly make a new listwalker imp_lw to avoid overwriting the first entry in self.imp_lw_dict[opt] Python 2.6 requires field numbers for format strings.