Revert "fix issue on python2.6"

This reverts commit 5ea41d222aa86602672a1f7afac1e1ec55f1ed54.
need to do this for 2.6 - 2.7+ compatibility