def tuple_factory(colnames, rows):
    """
    Returns each row as a tuple

    Example::

        >>> from dse.query import tuple_factory
        >>> session = cluster.connect('mykeyspace')
        >>> session.row_factory = tuple_factory
        >>> rows = session.execute("SELECT name, age FROM users LIMIT 1")
        >>> print rows[0]
        ('Bob', 42)

    """
    return rows
