Add python2.6 compatibility.
Merge pull request #2 from eyalr/master

Add python2.6 compatibility.