fixed for python 2.6
Merge branch 'master' of https://github.com/tsun1215/hackcmu_1