pmanalysis.py:
- Using argparse instead of getopt.