Trying to address PyMySQL errors.