connection = MySQLdb.connect(host='thehost', user='theuser', passwd=
    'thepassword', db='thedb', cursorclass=MySQLdb.cursors.SSCursor)
cursor = connection.cursor()
How to efficiently use MySQLDB SScursor?