update to be compatible with python 2.6
Merge pull request #736 from dimagi/skelly

update to be compatible with python 2.6