def get_row_dicts(cursor, query, params=()):
    """
    Convert a sequence of row (record) tuples -- as returned by a call to Python DBAPI's ``cursor.connect()``
    method -- to a list of row dicts keyed by column names.