switching from mysql-python to pymysql