#!/cygdrive/c/python32/python
import subprocess
import pdb

inf = open('place_class')
out = open('place_new', 'w')
#pdb.set_trace()
for i in inf:
    if 'place:' in i:
        i = i.rstrip('\n')
        lines = i.split(':')
        if len(lines) < 3: print ('error: ', lines)
        new = lines[0] + ':' + lines[1] + ':' + lines[3]
        out.writelines(new + '\n')
    else:
        out.writelines(i)
