maintain compatibility with Python 2.6
Merge pull request #75 from gertingold/py26compat

maintain compatibility with Python 2.6