Fix deprecation warning in Python 2.6
Merge pull request #1 from craigahobbs/master

Fix deprecation warning for Python 2.6.