Added test compatibility with python 2.6
Merge pull request #3 from ader1990/python2.6

Added tests compatibility with python 2.6