old_contents: # pip install PyMySQL
  
  import pymysql
  pymysql.install_as_MySQLdb()
new_contents: # pip install PyMySQL
  
  import sys
  if sys.version_info.major == 3:
      import pymysql
      pymysql.install_as_MySQLdb()
subject: fix mysql import for python2