Convert optparse to argparse

Drop the use of optparse.  This isn't test by travis but the changes are small enough that we can fix them at deployment if anything breaks.  But a simple amagama -h doesn't raise any errors.

I've not done any whitespace fixes on purpose.  I'd rather land those after this lands.