Fixed #20025 -- Pointed to a MySQLdb fork for Python 3.

Made a few minor compatibility adjustments.
[py3] Stopped iterating on exceptions. Refs #20025.