s = '\u05d4\u05e7\u05d3\u05de\u05d4'
t = '<b>' + s[0] + '</b>' + s[1:]
print(t)
with open('out.htm', 'w', encoding='utf-8-sig') as f:
    f.write(t)
Python: Correct Way to refer to index of unicode string