Support for pymysql driver.

This patch is for adding support for pymysql driver as a fallback to MySQLdb.