adding dict cursor to pymysql cursor