Added some more robust command line interfaces to a few scripts

Argparse is your friend