def METHOD_NAME(process):
    # To avoid blocking never use a pipe's file descriptor iterator. See https://bugs.python.org/issue3907
    for line in iter(process.stdout.readline, b''):
        yield line.decode('utf-8')