for python 2.6 compatibly
Merge pull request #1 from actberw/master

for python 2.6 compatibly