# How to change the model via python in blender?

I found a project on github at https://github.com/eFFeeMMe/bge-traffic. I can run this model on the blender game engine successfully. There are city.py,cityengine.py and makecity.py in the project.I guess the makecity.py is the main code to grnerate the city.blend.Here is the code: import bpy

def instances_from_ascii(txt):
becomes = {' ': 'tile_Grass0',
'0': 'tile_Building0',
'1': 'tile_Building1',
'2': 'tile_Building2',
}

cell_w = 2.
cell_h = 2.

lines = txt.splitlines()
h = len(lines)
w = max(len(line) for line in lines)

grid = [[None for y in range(h)] for x in range(w)]

for y, line in enumerate(lines):
for x, symbol in enumerate(line):
obj_x = x * cell_w
obj_y = - y * cell_h # So that when in default blender game projection, orientation is like text
if symbol in becomes:
group_name = becomes[symbol]
view_align=False,
location=(obj_x, obj_y, 0.))
grid[x][y] = o = bpy.context.selected_objects[0]

for x in range(w - 1):
for y in range(h - 1):
o = grid[x][y]
if o:
a = grid[x+1][y]
b = grid[x][y+1]
if a:
if b:

instances_from_ascii("""
11201101201201201101210202101020121
0        |     |     |            0
2        |     |     |            1
1        |     |     +-----+      0
1   1    |     |     |     |      1
0 0   2  | 10  |  0  | 1   |      2
2    1   |  2  | 2   |  2  |      1
0      20|    1| 1   |   0 |      0
0 21 01  | 012 | 0 21|102  |0     2
1--------+-----+-----+-----+------1
0      22|     |     | 12 0       1
2        |     |     |0    21     1
1        |     |     |   1 0      1
1        |     +-----+------------1
1        |            1           0
""")


Now I change the text such as change '0' to ' ',but there had anything changed.How can I change the city?How did it generate the city.blend?