Code that passes testris.py's second test.
Once you know that you need to read the command line using raw_input()
to know what command has been sent, the rest is trivially easy.
NOTE: after the command is sent (a.k.a printed in the command line), your
program is run, so there is no need to loop over every printed line.