Aww, s/sys.argv[1]/filename/
Forgot to change sys.argv[1] to 'filename' after bugtest.
Fixed..