Use optparse instead of getopt for command line options.

Use "raise instance" instead of "raise class, args".

Modernize the code in other spots (bools, startswith()).
1 file changed