fix pymysql version compare bug