user pymysql instead of MySQLdb as DBAPI. And add insert and select statement in User.py