Made test.py accept command line arguments

Now it takes the input file as its first argument, and the output filename as the
second argument.

It should be noted that it no longer prints its output to the screen, instead storing it
the output file.