Cleaned up raise statements.

When an exception is raised, the arguments should be single-quoted and
surrounded by parentheses.  Fixed now!
Added field numbers to formats.

Python 2.7 doesn't require fields to be numbered.  Python 2.6 does.  Oops.