You need to read the python database API specification, PEP-249.
Basically, after you've executed a query with a cursor object, you then query the cursor object for the results.
cursor.execute(my_sql)
for record in cursor.fetchall():
# do stuff