def row_to_dict(row):
    """
    This takes a row from a resultset and returns a dict with the same structure
    :param row:
    :return: dict
    """
    return {key: value for (key, value) in row.items()}