def write_stream(script, output='trans'):
    first    = operator.itemgetter(0)
    sentence, _ = script
    printer  = partial(print, file=sys.stdout, end='')

    for line in sentence:
        if isinstance(first(line), str):
            printer(first(line))
        else:
            printer(first(line).encode('UTF-8'))

    printer('\n')

    return sys.stdout.flush()



# TODO: Get rid of all this context crap
:param script: Translated Text
dataset/ETHPy150Open jjangsangy/py-translate/translate/coroutines.py/write_stream