some_str = ''
while True:
    some_str = input('> ')
if some_str.lower() == 'quit':
    return
q.put_nowait(some_str)
if __name__ == '__main__':
    q = Queue()
fn = sys.stdin.fileno()
qproc = Process(target=sub_proc, args=(q, fn))
qproc.start()
qproc.join()
Python using STDIN in child Process