code: def rl_initials(x):
      
      return re.sub(
          re.compile(u'([А-Я])\\.\\s*([А-Я])\\.\\s*([А-Я][а-я]+)', re.UNICODE),
          u'\\1.\\2.\u2009\\3',
          x
      )
docs: Replace space between initials and surname by thin space