support python2.7 (github issue#7)