def connect():
    dsn = cx_Oracle.makedsn('host', 1521, 'sid')
orcl = cx_Oracle.connect('scott/tiger@' + dsn)
curs = orcl.cursor()
sql = 'select * from sometable'
curs.execute(sql)
desc = [d[0] for d in curs.description]
result = [dict(zip(desc, line)) for line in curs]
curs.close()
How can I make cx-oracle bind the results of a query to a dictionary rather than a tuple?