Python 2.5 backwards compatibility

Added code to setup.py to copy and modify the .py source files to make
them Python 2.5-compatible. A "from __future__ import with_statement"
line is added at the top of each file, and the "except ExceptionType as
varname" syntax is converted to the obsolete "except ExceptionType,
varname" syntax.