Fix tests for Python 2.6.
Merge pull request #11 from faulkner/fix-2.6-tests

Fix tests for Python 2.6.