Improved commandline processing using argparse