go through and replace char in line one by one python code example
Example: python change character in string
mytext = 'Hello Zorld'
mytext = mytext.replace('Z', 'W')
print mytext,
mytext = 'Hello Zorld'
mytext = mytext.replace('Z', 'W')
print mytext,