def trans(to_translate):
    tabin = '\u043f\u0440\u0438\u0432\u0435\u0442'
tabout = '\u0442\u0435\u0432\u0438\u0440\u043f'
tabin = [ord(char) for char in tabin]
translate_table = dict(zip(tabin, tabout))
return to_translate.translate(translate_table)
string.translate() with unicode data in python