def write_to_clipboard(output):
    process = subprocess.Popen('pbcopy', env={'LANG': 'en_US.UTF-8'}, stdin
        =subprocess.PIPE)
process.communicate(output.encode('utf-8'))
Может ли python отправлять текст в буфер обмена Mac