worked examples of argparse and python logging