Replace deprecated optparse with argparse, per issue 683 [1]

This patch replaces optparse with argparse.  This code will only work with
python 2.7 or greater, as argparse is new in 2.7.

1: https://github.com/thinkle/gourmet/issues/683