import fileinput
fout = open('out.txt', 'a')
for i in fileinput.input('in.txt'):
    str = i.replace('u"', '"').replace("u'", "'")
print(str, file=fout)
How do I get rid of the "u" from a decoded JSON object?