tested in django 1.6 and last pymysql and sqlalchemy