add help; pyflakes:

Parse more-complex JSON with help for each command.  Fix a few
pyflakes errors.