Now compatable with py26
Merge pull request #50 from mpath/py26_compat

Now compatable with py26