make it work under pymysql 0.6