Maybe I missed something, but I don't see where you're overriding `sys.argv[2]`? I only see you copying it?