{u'name': u'\u0411\u043e\u0435\u0432\u043e\u0439 \u043a\u043b\u0438\u0447'}
data=json.dumps(json_data)
filename = 'test.txt'
out = open(filename, 'wb')
out.write(data.encode("utf-8"))
out.close()
u'\u0411\u043e\u0435\u0432\u043e\u0439 \u043a\u043b\u0438\u0447вместо кириллицы.
import json
json_data = {'ф': "і"}
filename = '/tmp/test.txt'
with open(filename, 'w') as out:
out.write( json.dumps(json_data, ensure_ascii=False))