Restore Python 2.5 compatibility by importing with_statement

The `setup.py` script and some of the unit tests use `with` statements.
This breaks installation and unit tests on Python 2.5; Python 2.5
support is still advertised in the `classifiers`.
Merge pull request #158 from lpsinger/with_statement

Restore Python 2.5 compatibility by importing with_statement