bug fix

I had to change the way this script works in order to achieve my minimum
requirements.

I made it so that sys.argv is set the way it would be if python was
called on the script directly. Namely I remove sys.argv[0] so that
argparse and other utilities will work. The drawback is that you can
only run one script at a time.