def add_input(cmd, immediate=False):
 if immediate:
  process_stdin(cmd)
 else:
  mpstate.input_queue.put(cmd)

def add_input ( cmd , immediate = False ) : if immediate : process_stdin ( cmd ) else : mpstate . input_queue . put ( cmd )
add some command input to be processed .