make it work under pymysql 0.6
Merge pull request #50 from youngking/master

make it work under pymysql 0.6