add Python 2.x support
Merge pull request #1 from zhicheng/master

add Python 2.7 support