fixed compatibility with Python 2.6
Merge pull request #78 from fradeve/python-2.6

fixed compatibility with Python 2.6