'input is a string and output is PIPE'

@staticmethod
def _stdin_string_drainer(input_string, stdin_pipe):

    try:
        while True:
            tmp = input_string[:512]
            if (tmp == ''):
                break
            stdin_pipe.write(tmp)
            input_string = input_string[512:]
    finally:
        stdin_pipe.close()
