Support for arg parsing via wrapper script.

Moved the argparse calls to the unconditional part of the module so it works regardless of exec mode.