Reverted to using pymysql.py; MySQLdb isn't better.